In my Smart Capture I have 2 different but related inputs, Country and State. Is there any way of relating it via AMPScript in order to select a country in one dropdown and automatically the input State dropdown gets adapted to the related values?

I know in javascript is usual to do dynamic drop down lists with country & state, but I would like to include it in the AMPScript code.

  • Can you please show us a copy of your code?
    – 0xsegfault
    Commented May 11, 2017 at 16:00
  • What I don't know es what kind of code insert in my Smart Capture. Is what I am asking for, some AMPScript example to do it.
    – Carlos D
    Commented May 11, 2017 at 17:04

1 Answer 1


If I understand you correctly you like to dynamically change available values in the second dropdown as soon as the value of the first dropdown changes?

If so, then this isn't possible using AMPscript as AMPscript is rendered on the server. You will need to use a clientside technology like javascript to do so.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .