Copied to clipboard

Flag this post as spam?

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


  • wolulcmit 357 posts 693 karma points
    Nov 05, 2010 @ 11:46
    wolulcmit
    0

    can Helpful text (as a paragraph or something similar) be inserted in the middle of a contour form?

    Here's my form:

    Quick quote (form heading)

    Name [field]
    Postcode [dropdown]
    Email [dropdown]
    <want to insert some helful text here that is supplementary to the label about the different product types>
    product [dropdown]

    Possible?
    I would make things a lot more flexible if it were possible to insert text between elements for situations where a little more description is needed than can be included in the label

    or is there a way to do this, which I'm missing...

    - Tim

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 05, 2010 @ 11:55
    Tim
    2

    Hiya,

    There are a few options. You could have a fieldset around the products field, and have the text there and format it with CSS if you want it to show up above the products dropdown, you could maybe look at creating a custom field type that has a field for adding the extra text and then override the rendering to inject the text beneat the label (like the fields in the Umbrack back end). The other option would be to inject the text using something like JQuery. We've done that a few times, where we've added additional text to terms and conditions labels (like links to the ts and cs) using a simple JQuery function to find the element and inject the extra copy.

  • Comment author was deleted

    Nov 05, 2010 @ 12:04

    Yup what @Tim said ;)

  • wolulcmit 357 posts 693 karma points
    Nov 05, 2010 @ 12:09
    wolulcmit
    0

    Yeah I was thinking of the JQuery route... preferably I'd like the text to be there with javascript turned off though.
    Ideally it would be cool if you could insert text just like you do form fields. The custom form field sounds like my best option here, so I'll have to investigate that.

    thanks for you help!

    - Tim

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Nov 05, 2010 @ 12:13
    Tim
    2

    Glad that helped! You can download the code for the field types that come with Contour in the packages section here: http://our.umbraco.org/projects/umbraco-contour-shared-source

    They're a good starting point to figure out writing your own extensions to Contour, they helped me loads when I wrote my first additional field types!

    :)

  • Rik Helsen 670 posts 873 karma points
    Nov 23, 2010 @ 09:34
    Rik Helsen
    0

    Any plans to include a tinymce editor we can just drag & drop in between questions?

    This would be usefull addon for all contour users...

  • Mads Krohn 211 posts 504 karma points c-trib
    Nov 23, 2010 @ 23:14
    Mads Krohn
    0

    That would indeed be very useful. Also very useful would be a tinymce editor field type *wink wink* :)

  • Comment author was deleted

    Nov 24, 2010 @ 08:29

    @Rik, yes the plan is to offer the users more flexiblity and control over the output in the next major release

Please Sign in or register to post replies

Write your reply to:

Draft