How to hide the question of multiple choice field on record producer

Krithika R
Tera Contributor

Hi All,

I need to hide the multiple choice question from the record producer. Radio is the multiple choice field but I don't want that Radio to be displayed on the form, instead I need only options to be displayed on the record producer form. How to achieve this.

find_real_file.png

1 ACCEPTED SOLUTION

Valmik Patil1
Kilo Sage

Hi Krithika,

You have to write a onLoad client script after you create a label to hide it.

 

$('label_IO:7817abedad4c3100dd49a5edb9ba2a38').hide(); //Replace this with the sys_id of the label you created.

Please let me know if you need any other help

Thanks,

Valmik

View solution in original post

3 REPLIES 3

Valmik Patil1
Kilo Sage

Hi Krithika,

You have to write a onLoad client script after you create a label to hide it.

 

$('label_IO:7817abedad4c3100dd49a5edb9ba2a38').hide(); //Replace this with the sys_id of the label you created.

Please let me know if you need any other help

Thanks,

Valmik

Hi @Valmik Patil,

This is not working in portal view and the UI type is in All only. Can you tell how to add in portal view too please.

 

Regards,

krithika

Sagar Pagar
Tera Patron

Hi,

You can hide the label using method-

g_form.setLabelOf('variable_name', '');

 

Thanks,

Sagar Pagar

The world works with ServiceNow