Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How do I run a script so that the user does not have to click into and out of a read-only calculated numeric field?

Avatar

Former Community Member

Hi all

I have a read-only calculated field, and I want to build actions on it, dependent on what the answer to the calculated field is.

I have used action builder, and it works, but only if the form filler clicks in and out ("exits") the field, which they didn't have to enter in the first place, because it populates as a result of a previous script.

To be more precise, The questions asked before this field are:

Date of submission (submitdate):

Date of event (eventdate):

Calculation occurs (days between event and submission), and answer is populated in a field called 'daysbetween'

Now I have a set of conditions:

If the daysbetween is < or = 14, then I want a message to come up saying ineligible to apply

If the daysbetween is >14 and < or = 28, then I want a message to come up saying a fast track fee will be applied, and I want the fast track fee box to be populated, and I want the fast track fee box to appear.

I used the action builder to get all of this to work, except that it only works if the user then clicks in and out of  the 'daysbetween' field, which they shouldn't have to, because it's already calculated for them

I feel like I have to put this script in an earlier field...but I don't know where - action builder won't let me do it in the 'eventdate' field

Thanks in advance

0 Replies