How could I validate field values on client side?

Hi Poc,

It might be possible to use a branch in your save action, that checks if the datetime value is greater-than or equal to “now.” You would need to set up a formula to evaluate this on the branch action. If the formula evaluates to true (in other words, if the event datetime is > now, then the action sequence could be set up to run further actions, like saving the changes in your model. You could then set up a second branch that uses the opposite formula; if the event datetime is < now, run a separate set of actions, like blocking the UI and showing a message like “Event date can’t be in the past.”

It could look something like (NOW() > {{$Model.yourmodelname.data.0.event_time__c}}), which would evaluate to true if the user chose an event_time__c in the future. The specifics will depend on what your models and fields look like.

To set up the formula, you can review our documentation here: https://docs.skuid.com/latest/en/skuid/models/ui-only-models-fields.html

and to learn more about how the branch actions work, take a look at the highlighted sections of our Action Framework documentation: https://docs.skuid.com/latest/en/skuid/action-framework/action-framework.html?highlight=branch

Edit: You may also need to read about merge syntax and global merge variables to understand how to refer to fields when using formulas.

Hope this helps!