Copied to clipboard

Flag this post as spam?

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


  • singer777 69 posts 80 karma points
    Jan 04, 2012 @ 22:14
    singer777
    0

    Can I use nodes as dropdown options in a Doc2Form contact form?

    I would like to make a dropdown field on my Doc2Form form that contains options automatically from a batch of nodes in my Content area of Umbraco. Does anyone know if this can be done?

    I'm on Umbraco v. 4.0.2.1

    Thank you!

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Jan 07, 2012 @ 00:10
    Chriztian Steinmeier
    0

    Hi singer777,

    You can do this using the DefaultValueNode parameter on the macro.

    You create the nodes to use, and the DataType to pick them ("Ultimate Picker" using "DropdownList" mode) - then add a property of that data type to the Document Type you're going to use with Doc2Form. Then create a document somewhere from that same Document Type and pick any default values for the properties, then Save (and publish).

    Note the Id of the saved document (listed on the Properties tab) and put that in the DefaultValueNode parameter when you insert the macro.

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft