Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Action Builder Condition and Result not executing (value equal to a total results in a disabled button being enabled)

$
0
0

Hi everyone,

 

I almost have this working but I'm missing something. I have a numeric field that contains a grand total that is fed from four other numeric fields. I selected the grand total numeric field and then added the following action with the Action Builder: Condition: When the grand total is greater than or equal to 400 the Result: is to set a "submit by email" button to enabled (when the form first loads, I have an action that disables the "submit by email" button).

 

However, when the grand total field totals 400, the submit button does not enable. But, if I put the cursor in the grand total box when it has a value of 400 and the I hit the enter key, the submit button becomes enabled! I have tried everything within Action Builder that I can think of, but have had no luck. What "piece of the puzzle am I missing?" Or, is what I'm trying to do not possible via the Action Builder?

 

Here is the code that is generated:

 

//+ GENERATED - DO NOT EDIT (ID:5C63BB92-97FF-4018-A1FE-FFB114A0814B CRC:2411975672)

//+ Type: Action

//+ Result2: SetEnabled("$Node2","open")

//+ Result1: ShowDialog("information","You have met your Orientation requirements. You may now submit this form.","Congratulations!")

//+ Node2: form1[0].SFContainerPage3[0].SigArea[0].EmailSubmitButton1[0]

//+ Node1: form1[0].SFContainerPage3[0].TotalforValidation[0]

//+ Condition1: NumericField("$Node1","greaterThanOrEqualTo","400")

//+ ActionName: TotalforValidation.exit

if (this.resolveNode("$").rawValue >= 400) {

  xfa.host.messageBox("You have met your Orientation requirements. You may now submit this form.", "Congratulations!", 3);

  oTargetField = this.resolveNode("SigArea.EmailSubmitButton1");

   oTargetField.access = "open";

}

//-

 

 

Thank you very much for your help and time.

 

Best Regards,

 

Chris


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>