Can a field become mandatory before submit?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 05:20 AM
I currently have two states 'Draft' and 'Analizing'
When loading the 'New' form it only asks as mandatory one field, but before moving from state 'Draft' to 'Analizing' I want to make other fields mandatory and don't let the user move on.
Is that possible or is it best practice to manage mandatory fields on different states?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 05:23 AM
Hi Andres,
You can set up UI Policies conditions based on state change to make necessary fields mandatory.
Also, you can have OnSubmit client script written for the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 05:26 AM
Jaspal is correct - this is a classic case of using a UI policy to change the behavior of other fields based on the current value of a given field (or fields). You tell it what condition and when that condition is met you tell it what action to take. By default, the actions are automatically reversed if the condition is not met.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 05:35 AM
Hi,
As per your requirement UI policy is best suitable when you working on form but for list you have to go through data policy.
Thanks
Jyoti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 07:19 AM
Thanks to all 3 of you.
My current requirement is to set x quantity of fields whenever they press the button 'Submit'.
But I can't stop the form from inserting before asking the required fields. Still all the info provided is helping me a lot, thank you!
OBS: The fields must only be required when submitting the form, not before.