Dynamic forms with CForms II

  • Unknown's avatar

    Hello.
    I have a problem when I try doing dynamic forms on my web page.
    There is someone that can help me with some kind of steps in order to make one form?

    I try to do it in the HTML code:
    <!–?php $fields = array(); $formdata = array( array(‘Selecciona’,’textfield’,0,0,0,0,0) ); $i=0; foreach ( $formdata as $field ) { $fields[‘label’][$i] = $field[0]; $fields[‘type’][$i] = $field[1]; $fields[‘isdisabled’][$i] = $field[2]; $fields[‘isreq’][$i] = $field[3]; $fields[‘isemail’][$i] = $field[4]; $fields[‘isclear’][$i] = $field[5]; $fields[‘isreadonly’][$i++] = $field[6]; } insert_custom_cform($fields,’2′); ?–>
    However the web page doens´t show anything.

    My aim is:
    When one user selects one option of two checkboxes, it is showed one dynamic form above. For example if the user selects “yes” a multiple box in order to select the correct answer; however if the user selects “No” the dynamic form will not be showed.

    I don´t know if there is another plugin to get this issue.
    Thank you a lof for any response.

    Aitor

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Dynamic forms with CForms II’ is closed to new replies.