Skip to main content
Known Participant
August 3, 2010
Question

Add more fields dynamically to dialog

  • August 3, 2010
  • 1 reply
  • 662 views

Is it possible in an extension to have a button for the user to add another row of controls? Here's the scenario: A <video> tag can have any number of SOURCE tags. I'd like to add a [+] button so users can add another SOURCE tag row.

However, I read that you can't use the document.write() function in an extension. So how do you achieve this effect? Thanks.

This topic has been closed for replies.

1 reply

Randy Edmunds
Adobe Employee
Adobe Employee
August 8, 2010

Is it possible in an extension to have a button for the user to add another row of controls? Here's the scenario: A <video> tag can have any number of SOURCE tags. I'd like to add a [+] button so users can add another SOURCE tag row.

However, I read that you can't use the document.write() function in an extension. So how do you achieve this effect? Thanks.

Take a look at the Recordset dialog. You can add as many fields as you like, and they get listed in a multiline text box (i.e. <textarea>).

HTH,

Randy