Skip to main content
Known Participant
July 30, 2009
Question

How to dynamically generate textbox and update datbase

  • July 30, 2009
  • 3 replies
  • 845 views

Hi,

  I am creating a from which has steps number of steps varry from process to process, so what I am thinking is to display one text box intially and to display another text box and hide first text box when user click next text button, Is there a way to do this ,,,,

thank you.

    This topic has been closed for replies.

    3 replies

    BKBK
    Community Expert
    Community Expert
    August 2, 2009

    You can easily hide or display the textboxes sequentially using Javascript. I have uploaded an example for you.

    I have just rolled this one out as a starter. You could of course make the script tighter and  more dynamic, for example, by introducing a textbox index i. I leave that up to you.

    Participating Frequently
    August 2, 2009

    I would do it using the tabs from jQuery UI, each tab being a step,

    initially only the first tab/step is enabled, when the user clicks on

    Next the next tab gets enabled, etc

    Mack

    WolfShade
    Legend
    August 1, 2009

    If you're using CF7 or later, you can use Rich Internet Application forms (aka Flash Forms) which gives a number of options as far as "tabbed" forms go.

    If you're using CF6 or earlier, or you don't want to mess with Flash Forms, it _can_ be done using JavaScript, but it's a royal hemhorroid to work with.

    ^_^