How to make a lookup list read only?


Badge +10

Hi,

How to make a lookup list read only, I tried disabling using rules, but while saving the form, the lookup list data is not saved to the list. I was having the same issue with date picker control when disabling.

I tried

NWF$('#' + jsvLookup).prop('readonly',true);

NWF$('#' + jsvLookup).attr('readonly',true);

Any Help?

Sojan


2 replies

Userlevel 5
Badge +14

try to put your controls in a panel and apply the formatting rule on the panel.

Badge +8

Hi Sojan,

I have seen when applying rules to the control (especially if the rule makes the control disabled) Saving the value in Javascript (through Advanced section of the control) does not work, as Marian suggested enclose your controls in a Panel and then try adding the rules to the Panel.

Hth,

Shrini

Reply