Make all the fields read only

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Make all the fields read only

kushp
I've an Orbeon form. Once the form is filled and submitted through the system, I want to make all the fields read-only.

Here are the steps to do so:

1. Fire an action when the form is loaded.
2. My system will determine whether the form is submitted or not and return a true/false in response.
3. However, I can set all the values of all controls in response to the service. But is there a way to set them read-only?

The requirement is to make all the fields conditionally read-only. The result of the condition will be determined by my system.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Make all the fields read only

Alessandro  Vernet
Administrator
Hi Kush,

You could store the result of your service call in a hidden field, and use
the value of that field to make every section read-only, from the
"Section/Grid Settings" dialog (shown below). The downside is that you'll
need to repeat that expression for each section. We have a feature planned
for a future release which will make this much easier (so you can look at my
suggestion as a workaround!). You'll let me know if this works for you.

<http://discuss.orbeon.com/file/t119778/Make_section_read-only.png>

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Make all the fields read only

Alessandro  Vernet
Administrator
Hi Kush,

Did you get a chance trying to use a hidden field, and have its value
influence the read-onliness of several sections?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet