I'm opening up a discussion thread for the new functionality described here:
(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!
Amazing work, Bill!
Views
Replies
Total Likes
This is AMAZING. Thanks for sharing!
Views
Replies
Total Likes
Hello! I'm one of the Workfront technical writers and I've worked with the product manager for custom forms to add more examples of advanced validation logic in the documentation, following your examples. I appreciate your work in putting together these examples that other users can benefit from!
https://experienceleague.adobe.com/en/docs/workfront/using/administration-and-setup/customize/custom...
Cheers,
Lisa Mileusnich
thank you Lisa, and I really liked the examples showing use of arraylength! Great addition for us all to look at.
hi @skyehansen , thanks for starting great discussion!
qq, do you think this will be available in production with 25.4 release. Does this fall under:
or should I confirm this with support?
Views
Replies
Total Likes
I did input a ticket to support to ask about this as I was not seeing it in my preview (along with video and pic), however, after doing that and having the team review, it does now show in my preview environment which they attributed to a recent maintenance update of the form in prep for the April release. That said, my comment on needing to be behind the unified shell is no longer valid and the functionality should be showing in a person's preview whether or not they are behind the unified shell.
Views
Replies
Total Likes
thanks for following up! I appreciate you both. And yes, looking forward to seeing this in production next Thu.
Views
Replies
Total Likes
One problem that I was running into a lot was that you can only have one business rule for an object event type, i.e. you can only have one business rule for project updates, but I needed to be able to apply different rules for different situations.
What I did to handle this was to create a "Business Rule Logic" field, then on the templates this field gets configured to determine which logic should be applied.
I think I almost have my holy-grail of features here. Hoping someone else can close my gap on Scenario Three below to make it perfect.
In my instance, the use-case 'Can we make that field required for only company XYZ?' is incredibly common, and one I've not been able to support without creating extra company-level forms for each client. In this example, I applied field-level logic to a key field that's absolutely required for one specific client but optional for all others, and tested against the companyID of the project.
Views
Replies
Total Likes
Hi @KatherineLa. Thanks for sharing your use case. I can suggest the following:
1. You can add a Business Rule to check that all projects created from templates have the company field filled out. The expression might look like this
IF(!ISBLANK({templateID}) && ISBLANK({companyID}), "Please, select a company before creating the project")
IF({company}.{ID} == "Your ID" && {DE:CreativeName} == "", "CreativeName required for This client's Deployments")
3. Bonus Tip: You can even customize the error message to show the company's name if your use case needs so or it will be more helpful for the end-users. E.g.
IF({company}.{ID} == "Your ID" && {DE:CreativeName} == "", CONCAT("CreativeName required for ", {company}.{name}, "'s Deployments"))
Hope this helps
Views
Replies
Total Likes
I'm so glad they added this!
Am I going crazy, or does this not seem to support regular expressions? I was asked to make an already existing text field not allow folks to enter text, only numbers. I thought I could do this using a regular expression, but the validation editor doesn't like the syntax I provide. Has anyone been able to get something similar to work?
Something like this:
Views
Replies
Total Likes
@CR17506599 This is an existing setting for fields, so you wouldn't need to set it via validation logic. It exists below the Instructions field. See the screenshot attached.
Views
Replies
Total Likes
Thank you! I did try that, but unfortunately, it won't let you change the format of the field if you already have custom forms out there that don't match the new format. In our case we have several hundred forms with fields that contain text that we want to keep for historical purposes. I thought the new validation rules would be a nice middle ground, but can't get them to work for our particular use case. We could also make a completely new field and hide the old one, not sure if that would hide the field on the forms that already exist though.
Views
Replies
Total Likes
I think you just need to keep trying but yes, to your point, regex doesn't work in calculated fields and therefore, validation logic. Yes, you could make a new field, and you would have to hide the old field on every single form, which is not a big deal except that you apparently have hundreds of forms (??).
So an example of what I mean by "trying", which I didn't spend a lot of time on, so I know probably most folks can improve:
Views
Replies
Total Likes
So you wouldn't be able to use regex, but you can do something like this.
IF(
NUMBER({DE:Test Field})!={DE:Test Field},
"Text included!"
)
Views
Replies
Total Likes
Use case: I wanted to develop a way to enter a time separately from a date. This is for a team who is planning on using workfront objects to store a delivery time (e.g. emails sent at XX time) but often had changes involving time (e.g. for this week, let's send all emails at 2AM instead of midnight).
My first try with the help of copilot, was just to develop a field for HH:MM. I'm still trying to figure out whether I should add AM/PM or make that a separate field.
Views
Like
Replies
Views
Likes
Replies