Skip to main content
Participant
June 21, 2006
Question

Auto-add Dynamic fields

  • June 21, 2006
  • 1 reply
  • 345 views
Hello everyone,

I have a question regarding dynamic forms. I want to add some fields in an XML form that can be added as often as the user need. Let's say for example I have a field "Phone Number" in my form. I want the user being able to enter a phone number in that particular field, then click on a control, so that a new Phone Number field appear. This would allow to enter as many Phone Numbers as the user want.

Is there any structure allowing that kind of thing in ColdFusion ?

thanks in advance
Khelidon
    This topic has been closed for replies.

    1 reply

    Inspiring
    June 24, 2006
    I haven't seen anything that would allow this to happen without the underlying code that would process each additional number. The only way I know how to do something like this is to hard code it into the html and use actionscript to make additional number boxes appear based on what the user needs. This would be more brute force type code then what you are probably looking for.

    Jeff
    KhelidonAuthor
    Participant
    June 26, 2006
    Thanks for this answer.

    I was indeed looking for something more "implemented" as the <repeat> element in XForms for example
    Thanks anyway

    Khel