Validation Logic in custom forms | Community
Skip to main content
skyehansen
New Participant
March 25, 2025

Validation Logic in custom forms

  • March 25, 2025
  • 12 replies
  • 5426 views

I'm opening up a discussion thread for the new functionality described here:

https://experienceleague.adobe.com/en/docs/workfront/using/administration-and-setup/customize/custom-forms/design-a-form/display-skip-logic-form-designer

 

(validation logic in custom forms)

 

Please add questions/issues or discovered functionality below. If you're posting something that works please use the format:

*use case

*code

*screenshot of expected result

 

thanks for your participation!

12 replies

skyehansen
New Participant
March 26, 2025

Use case -- "we have a 2 week SLA, but our requesters always seem to randomly pick tomorrow as a due date"

 

Sample code (this is specifically addressing a request queue, so works because the request hasn't yet been submitted (entry date is blank). Requesters could get around it by submitting and then changing the due date -- so admins should consider setting up additional code to guard against this.

IF(ISBLANK({entryDate}),IF({DE:Date Field}<ADDWEEKDAYS($$TODAY,10),"Please allow us at least 2 weeks to complete your request"))

 

Expected result:

skyehansen
New Participant
March 25, 2025

Use case -- "we want our users to provide an answer to a question, that is less than X number of characters"

 

Sample code:

IF(LEN({DE:Single Line Text Field})>50,"Please choose a name that is less than 50 characters")

 

Expected result: attached file

 

Doug_Den_Hoed__AtAppStore
New Participant
March 26, 2025

 

Nice one @skyehansen,

 

Flip that coin and you can prevent people from writing MORE than a certain number of characters; not quite as good as seeing the count live as you approach the limit, but still, something.

 

Regards,

Doug