I have a couple of fields that are marked as required on both Skuid and Salesforce. The wizard allows me to go through all of the steps, including the last step which saves the object without requiring the required fields. If I add a save action to the first step, that forces the required fields but that same save action does not work on other steps. I am using API v2 on 12.4.14
required fields missing message when saving
Best answer by Khamla_Phimmachack
Hi Eva,
To be clear, required fields will only be evaluated upon saving the model. If you have a step that does not have an action to save the specific model, the required field will not be evaluated. It is strange the validation works upon save in the first step, but not the subsequent ones.
Have you checked for any unintended model actions or other rogue actions that might be applying/updating a value on this field?
Are you by chance saving the model as soon as the page loads? This is a rare use case but if so, the save may be taking place before the component is loaded, which triggers the validation. Skuid will only evaluate fields that have unsaved changes so if you are saving the model on page load (before the component loads), you can try adding an action to update the field to blank right after saving. This would cause the field to be in an “unsaved” state and would trigger the validation.
If you have a simple page showing this problem, you might share the XML here to get extra eyes on it.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.