Creator Simplified #10: Predefine Form Field Values and Make Them Read-Only for Users

Creator Simplified #10: Predefine Form Field Values and Make Them Read-Only for Users

Hey Creators,

Ready for this week's tip in the Creator Simplified series? Today, we will explore how to have read only fields in a form.
 
Use Case:

Assume a scenario where the default value for a Department field needs to be English Literature, but you don't want the users to be able to edit it.
 
In such cases, we can use single line fields to display the value and disable them to prevent any edits.

How to do this?

1. First, from the edit mode of the application navigate to the field properties and enter English Literature as the initial value for the Department field.



2. Next, create a workflow on field rules to disable the Department field.



Result:

This is how the form looks in the live mode of the application with default value of Department field as English Literature.




This is just one instance, read only fields can be applied for various use cases like,  

  • Calculating a field's value based on user input and disabling it to prevent from any further edits.

  • Displaying the price and available quantity of products.

  • For every user, displaying the dynamic logged in user id on load of the form.

That's all for today's tip. Stay tuned and follow this space for more such posts. Also, feel free to drop your questions/suggestions in the comments below.