Expand my Community achievements bar.

Linked Drop Downs

Avatar

Former Community Member

Hi all,

I wonder if anyone might be so kind as to help me with a query with a linked dropped down box? Its based on an example created that links a country to provinces (USA and Canada). I am trying to link academic schools and particular discipline areas. Would anyone be able to take a quick look if I send the form, please? For some reason I cannot get the second box to link to the first. I'm new to scripting and have used an existing example to base my form on. No idea why it does not work!

Any help greatly apprectaied.

Thanks,

Ken

6 Replies

Avatar

Level 5

HI,

If you upload the file to a sharing site (e.g. acrobat.com) then we can take a look as see if we can solve the problem. Just post the link here.

Regards

Malcolm

Avatar

Former Community Member

Hi all,

Here is the link to my form that I have uploaded - https://acrobat.com/#d=dNRf9caK2thxxI1yZGTjKQ

Really appreciate the help!

Thanks,

Ken

Avatar

Level 7

Hi Ken,

Did you share that document? When I click on the link it says the doc either doesn't exist or I don't have access to it.

djaknow

Avatar

Former Community Member

Hi there,

Just had another look at this. Hope this link works now?:

https://acrobat.com/#d=dNRf9caK2thxxI1yZGTjKQ

Thanks for the help!,

Best wishes,

Ken

Avatar

Level 5

Hi,

On the Country drop down list you have the following code

form1.page1.Subform.Module_details.Row1.country::change - (JavaScript, client)

// Update the state/province field when a different country is selected.

form1.page1.stateProv.rawValue = "";

countryScript.getStatesOther(xfa, stateProv);

This code is slightly wrong and if you change it to

form1.page1.Subform.Module_details.Row1.country::change - (JavaScript, client)

// Update the state/province field when a different country is selected.

stateProv.rawValue = "";

countryScript.getStatesOther(xfa, stateProv);

Then this should work as you expect.

Hope this helps
Malcolm

Avatar

Former Community Member

Hi Malcolm,

Thanks for the advice. Think this has sorted the issue!!

Much appreciated.

Best wishes,

Ken