Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dominik 711 posts 733 karma points
    Aug 11, 2011 @ 13:22
    dominik
    0

    Dependend fields in contour

    Hello,

    ive got the following scenario:

    Two radio buttons. If the user select one of them a textfield should appear where the user is able to set some detailed information. If the user selects the other one this textbox should disappear

    How can this be done with contour?

    Thanks

  • dominik 711 posts 733 karma points
    Aug 12, 2011 @ 08:47
    dominik
    0

    Any Idea?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 15, 2011 @ 12:47
    Tim
    0

    Hi Dominik,

    You'd have to do that with JQuery. Attach an event to the onload of the page with the form in it to hide the textbox and its associated div/labels. The attach an event to the radio button so that if it is selected, the textbox appears, and if it isn't it vanishes again.

    Hope that helps!

  • dominik 711 posts 733 karma points
    Aug 15, 2011 @ 13:03
    dominik
    0

    yes but how can i attach events to the radio buttons with contour form wizard?

    Is there no easy way to include this in the form wizard? Because i need this feature on more then one form. ALso it should not be done by an IT person it shoul be able to be designed by the marketing people who are creating all the forms.

    It would be great to include this in contour so they can just say "if the user clicks here this fields should be shown). Or something like this

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 15, 2011 @ 13:21
    Tim
    0

    Hiya,

    You can't. Contour doesn't do any kind of conditional field logic out of the box. That's why you have to do it with JQuery I'm afraid. There's not even an easy way to create a custom field that would do this either AFAIK I'm afraid! You could ask Tim G if he could add this as a feature, I know its been mentioned before.

  • dominik 711 posts 733 karma points
    Aug 15, 2011 @ 16:27
    dominik
    0

    Is Tim G available in this forum? or where can i contact him?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 15, 2011 @ 16:55
    Tim
    0

    He's a member of the core team. He usually checks on here and answers stuff. You could try the contact form on the main Umbraco site as well. His profile is: http://our.umbraco.org/member/1171

  • dominik 711 posts 733 karma points
    Aug 15, 2011 @ 16:59
    dominik
    0

    Thanks TIm, but there is no "pm" or "email" link on his profile. So i have to use the global contact form on umbraco.com?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 15, 2011 @ 17:00
    Tim
    0

    I'd use the contact form on Umbraco, or you could try Twitter, his account is on his profile!

    :)

Please Sign in or register to post replies

Write your reply to:

Draft