How do I make the field Conditional ReadOnly in a form?

In certain use cases, some form fields should be non-editable based on the value selected in another field. Cflow allows you to apply Conditional ReadOnly logic using rules.

Steps to Configure Conditional ReadOnly Fields:

  • Go to Workflow Setup from the left menu.
  • Select the required workflow (e.g., Expense Report).
  • Click on the Form Creation tab and choose the appropriate stage (e.g., Initiator).
  • Click on the field you want to make ReadOnly conditionally.
  • In the Field Properties panel on the right, navigate to the Validation tab.
  • Under ReadOnly, select Conditional.

In the ReadOnly Settings window, define the condition:

Example: 

If Discount Type = Percentage → Make Discount Amount field ReadOnly

Or: If Discount Type = Amount → Make Discount Percentage field ReadOnly

Click Save to apply the configuration.

For example, the Discount Type field has two values: Percentage and Amount.

If the Discount Type is set to Percentage, then the Amount field is not required and can be set as read-only. 

The following screenshot illustrates the condition specified in the Amount field.

If the Discount Type is “Amount”, then the Percentage value is not required and can be set as read-only. 

The following screenshot illustrates the condition specified in the Discount Percentage field.