cancel
Showing results for 
Search instead for 
Did you mean: 

want to create a custom input field like this(image attached) with red border and background

0 Kudos

Hi,

I am new to CRM in want to create a custom input field, but it should come with red border color and red background as shown in the picture.Please tell me the logic and in which method to write it

In picture the particular field is highlighted to red only when we save a person without entering the mandatory details.

Thanks in advance

Rahul

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member210661
Active Contributor
0 Kudos

Hi Rahul,

This we can achieve by using iterator class. the iterator class is trigger each and every label and field that has to be displayed in the web UI.

create one zclass in se24 add an interface IF_CHTMLB_FORM_ITERATOR in to that class.

in that class there is a method RENDER_CELL_START implement that method.

go through this link you can achieve your requirement.

Thanks & Regards,

Srinvias.

dharmakasi
Active Contributor
0 Kudos

Hi Rahul,

You can set the field as mandatory in configuration, we have an option to set as Mandatory with check box. First you create the field and add it in view configuration and there you can set it as mandatory.

Another way you can set the field as mandatory in get_p method of the attribute as well.

Best Regards,

Dharmakasi.

deepika_chandrasekar
Active Contributor
0 Kudos

Hi Rahul,

How you added custom field in configuration?

There you can mention it as mandatory field.

if you added the field using .htm code

make attribute required = 'TRUE'  and errorState = 'ERROR' in inputField tag

check this document

.

Regards,

Deepika.

Former Member
0 Kudos

I think only mandatory fields are marked like this.

Best regards,

Thomas Wagner