The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Can a field become mandatory before submit?

andresgt
Mega Expert

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?

8 REPLIES 8

Jaspal Singh
Mega Patron
Mega Patron

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.


Chuck Tomasi
Tera Patron

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.



UI policies


jyotisoni
Kilo Explorer

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


andresgt
Mega Expert

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.