Make fields "Read Only"

  • 14 July 2017
  • 7 replies
  • 170 views

Hi All,

 

In my view/form I have about 100 questions need to be fill in  (some field are rich text, others are CheckBox, or Yes/No questions).

Is there a way (rule/javascript) for me to make all these fields become a "read-only" fields on form/view initialize/onload.

Then when a user clicks on a button I need to make them become "editable" again.

 

Thanks,

TTN


7 replies

Badge +4

Use the "Set view controls properties" Action in rule designer to set read only to no.

Understood.

 

Let me make it more clear, I am looking for a way to set "all" the fields (100 of them)  in the view/form to be "Read Only" at one call not set single field properites one at the time.

Badge +4

I ran into this issue as well: http://community.k2.com/t5/K2-blackpearl/Disabling-Views-Makes-it-hard-to-read-the-content-How-to-Fix/m-p/96829#M31361

 

You want to use the "Specify Edit State for View and Form Controls" rule.

 

Thank you all. I will try

Badge +8

TTN,

 You can do this using the "Specify the edit state for view and form controls" rule. 

 

 

I hope this answers your question. Let me know if you have any questions.

 

Thanks,

Bryan Peters

I got it.

Thanks

It works.

Reply