How to make fields as mandatory in ui page

Santhosh23
Tera Expert

below shown is the ui page. how to make the fields as mandatory in ui page based on selection of dropdown.

find_real_file.png

4 REPLIES 4

Community Alums
Not applicable

Hi Santhosh,

Refer these link if that helps :

creating a mandatory field in ui page?

Make UI Page Text area mandatory

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Vasantharajan N
Giga Sage
Giga Sage

1. Please use onChange event on the input tag

2. Validate using the client script

3. Add mandatory attribute to the Phone/Email using DOM manipulation (in case of custom field in UI Page).


Thanks & Regards,
Vasanth

Thanks for the response I am new to UI page. could you please share any sample code.

Just a sample UI Page code.

if user select the Volvo then then user name field will be made mandatory. 

find_real_file.png


Thanks & Regards,
Vasanth