How to make name value pair field read only ?

Shreya Nagar
Tera Contributor

ShreyaNagar_0-1697615209924.png

Hi , 

I have tried onChange client script when field value is changed then name value pair field will be read only but after form has been submitted then field will be non read only , I have also tried UI Policy and Dictionary but it also not working , Please let me know .

10 REPLIES 10

Anurag Tripathi
Mega Patron
Mega Patron

What type of field/variable is this?

-Anurag

Shreya Nagar
Tera Contributor

Name-Value Pairs

 

I just tried and using this single line script ina  client script im able to make these read only

 

g_form.setReadOnly('namevalue field name', true);

 

AnuragTripathi_0-1697619368755.png

 

-Anurag

Shreya Nagar
Tera Contributor

As per my requirement , field should be readonly after form has been saved ,
I have created Onchange client script when onchange field value is change then namevalue pair field will be readonly but after form has been saved then field will be non read only .