Forms - date attribute limitation

Hello,

I have a form that has a date input so that managers can set an end date to their team members contract.

I want to add constraints to this date input such as :

  • not a date in the past
  • not a date > current date + 1 year

Does anyone has an idea on how to implement that ?

Thanks

Hey David,

As far as I’m aware, ISC does not support validation of date fields. Other form fields such as text do have options for validation, but it’s limited. You basically provide a RegEx expression that the input data must match.

You’ll likely have to use a workaround such as doing a check later in the workflow after form submission.

Can you provide the export JSON for your workflow in Markdown? I can help you explore your options.

Hi Dalton,

Thanks for confirming.
For the moment my flow is just a form to input a date.

A workaround would be :

  • Workflow started through launchpad
  • Interactive form 1 : to input a date
  • Workflow step to check the value
  • Interactive form 2 : to display an error message / new date input to correct the value

But this means it will catch an invalid error only once, or we will need to do the same thing again and again as there is no recursive options

Kind regards,

Hey David, I’m working on similar use case. Managers need to set contractor extension date but this date shouldn’t be greater than 90 days. Were you able to find a workaround or any solution to add constraints in the form or workflow? How you checking and validating if your date input in the form is not greater than eg 1year in your workflow?

Hello Nara,

I checked with the Professional Service team and they were not able to give another workaround than what was suggested (ie : make a validation after the form submission)

Right now having dynamic validation on date input is not possible.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.