Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 66447

Pulling export values from drop down list to another field

$
0
0

I have a Drop Down List called "EffectiveDate" with 12 items (1/1/16; 2/1/16; 3/1/16 ... 12/1/16).  The export values I put in is the pro-rated amount of money the company contributes to an employee's HSA based on their effective date selected.  How do I get the text field "Contribution" to show the export value associated with the date selected in EffectiveDate? 

 

Secondly, later in the form, I need the number of pay periods left in the year based on their effective date to populate.  If EffectiveDate = 1/1/16 then 24; if EffectiveDate = 2/1/16 then 24; and so on.  I used this Custom Calculation Script below in a similar form to pull data from a Radio Button selection, but using it for a drop down list isn't working.  I put my modification below that.  Can you see what I'm doing wrong? 

 

I am very excited to automate these insurance forms (after all, who likes filling out benefit forms?) and REALLY appreciate the assistance!!

 

Radio Button Group: (working)

var v = this.getField("Name of Radio button grouping").value;

if (v=="1000") event.value = 1000;

else if (v=="2000") event.value = 2000;

else if (v=="3000") event.value = 3000;

else if (v=="4000") event.value = 4000;

else if (v=="5000") event.value = 5000;

else if (v=="6000") event.value = 6000;

else if (v=="7000") event.value = 7000;

else if (v=="8000") event.value = 8000;

else if (v=="9000") event.value = 9000

else event.value = "";

 

Drop Down List: (not working)

var v = this.getField("EffectiveDate").value;

if (v=="1/1/16") event.value = 26;

else if (v=="2/1/16") event.value = 24;

else if (v=="3/1/16") event.value = 22;

else if (v=="4/1/16") event.value = 20;

else if (v=="5/1/16") event.value = 18;

else if (v=="6/1/16") event.value = 16;

else if (v=="7/1/16") event.value = 14;

else if (v=="8/1/16") event.value = 11;

else if (v=="9/1/16") event.value = 9;

else if (v=="10/1/16") event.value = 7;

else if (v=="11/1/16") event.value = 5;

else if (v=="12/1/16") event.value = 3

else event.value = "";


Viewing all articles
Browse latest Browse all 66447

Trending Articles



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