Setting a Field as Read Only

Within the Capriza Designer, it is possible to render controls that are interactive in the source application, such as text inputs, lookups, etc., as read only fields. This feature enables you to further simplify workflows for an enhanced user experience. For example, this source application for entering Purchase Orders has a date input field. However, entering anything but today's date (default value) will trigger an error. 




To save the user the wasted time of potentially running into an error, you can make the date field read only on mobile.


First, the required page elements.




Click the wrench icon to open the Web Properties dialog for the control you would like to make read only.




Navigate to the "Properties" tab and scroll to the "Monitor Read Only State" section.




Change the retrieval method to "Override."




A textbox to enter JavaScript code will appear. Specify the conditions under which the control should be rendered Read Only. For example, to render the control read only any time it is on the page, you could use the following code: 


if ( = true) element.readOnly = true;




Close the dialog. The field is now read only in the mobile preview.



Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.