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?
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.
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!
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
is working on a reply...