I have a confiform which have field 1 and field 2.
When a user submits a new entry then these fields are not mandatory.
But when a user click on edit of these submitted records then both field 1 and field 2 are required during modification.
Can it be possible
The easiest way is to check for id
id:[empty] - for new records -> create
!id:[empty] - for existing -> edit
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But this is not working
Field name( or regular expression): id
Condition: !id:[empty] AND Name:[empty]
Action to execute: Validation Rule
Message: Name Required
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To do this, you can use the "on modify" condition in your validation rules to enforce that Field 1 and Field 2 are required when a record is being edited. For example, you can use a script or rule like:
if (entry.status == 'modified') { if (!field1 || !field2) { return "Field 1 and Field 2 are required when modifying."; } }
This ensures that when a user edits an existing record, both Field 1 and Field 2 are required. However, when creating a new record, these fields remain optional. Also, you could create a specific form or section related to fresh herbs or another product category, where you define the fields conditionally based on the context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.