Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - if statement for dropdown lists, result in txtbox
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

if statement for dropdown lists, result in txtbox

 Post Reply Post Reply
Author
alock View Drop Down
New Member
New Member


Joined: 23 May 2014
Points: 1
Post Options Post Options   Quote alock Quote  Post ReplyReply Direct Link To This Post Topic: if statement for dropdown lists, result in txtbox
    Posted: 23 May 2014 at 4:52pm
Good Morning,

My users are all using Windows 7 (32-bit) as well as Adobe Acrobat X Pro.

I am using LiveCycle ES2 and am attempting to create a form, where when a value is selected from a dropbox list on the main form and where another value is selected from a dropbox list on a subform, a textbox is populated with some pre-defined text.

I am trying to accomplish this in JavaScript but am unable to do so.

The code I am trying is below:

form1.#subform[0].Subform1.WireIntructions::change - (JavaScript, client)

var ddBanks = form1.#subform[0].DDBanks.rawValue;
var ddInt = form1.#subform[0].Subform1.DDInternational.rawValue;

if (ddboxBanks == "RoyalBank" && ddInt == "Yes")
   {
   this.rawValue = "International Bank of the World \nConta No: 123456789012 \nIBAN: 12345678901234567890123456 \n1234-567 FUNCHAL (Canada) \nSwift Code: CAN123456ON \nRef: FQA";
   }
   else if (ddboxBanks == "RoyalBank" && ddInt == "No")
   {
   this.rawValue = "Send to Internal Control \nRef: Int Ontario Not International";
   }
    else
   {
   this.rawValue = "";
   }   

if (ddboxBanks == "ScotiaBank" && ddInt == "Yes")
   {
   this.rawValue = "Universe Bank \nConta No: 123456789012 \nIBAN: 12345678901234567890123456 \n1234-567 FUNCHAL (Canada) \nSwift Code: CAN789456ON \nRef: BBA";
   }
   else if (ddboxBanks == "RoyalBank" && ddInt == "No")
   {
   this.rawValue = "Send to Internal Control \nRef: Universe";
   }
    else
   {
   this.rawValue = "";
   }    


 

I have also attached an example of the form that I created in LiveCycle.

uploads/1700/If_Value_Example.pdf

Can someone help me out?

Regards,

A

 

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.029 seconds.