How can I create a picklist field, where for example for Education I'd like to have the following values:

  • B.tech
  • M.tech
  • MCA
  • MBA
            set @fname = RequestParameter("Firstname")
            set @lname = RequestParameter("Lastname")
            set @email = RequestParameter("Email")
            set @Education=RequestParameter("Education")

This is my landing page in ET

  • Please provide more information on your request and show any code you have used so far or tell us about what you have tried so far. See here for help on forming a good question - stackoverflow.com/help/how-to-ask May 26 '17 at 12:11

There are multiple ways - but going off your request in the title, the pure AMPScript way would be to use the BuildOptionLIst(1,2,3) function

Parameter 1 - String - Variable used to determine which option becomes selected by default
Parameter 2 - String - Value of first option on the list
Parameter 3 - String - Presentation name of first option on the list


%%=BuildOptionList(AttribA, "1", "One", "2", "Two", "3", "Three")=%%


<option value="1">One</option>
<option value="2" selected="selected">Two</option>
<option value="3">Three</option>
  • Thank you for your response I will try with this and get back to you
    – user45429
    May 26 '17 at 13:02
  • html> <body> <form method="post" action=" pages.S7.exacttarget.com/… "> FirstName:<input type="text" name="Firstname" /></br> LastName: <input type="text" name="Lastname" /></br> Email: &nbsp;&nbsp;&nbsp; <input type="email" name="Email" /></br> Education: </br> <input type="submit" name="submit"/></br> </form> </body> </html> this is my form page here i want to make that picklist
    – user45429
    May 26 '17 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.