Copied to clipboard

Flag this post as spam?

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


  • J 447 posts 864 karma points
    May 22, 2013 @ 15:09
    J
    0

    Value from dropdown

    I have a contour form with a dropdown and would like to perform an action with the value selected by the user. How could this be done?

    I have read the documentation but a little unclear how to approach this and get the selected value?

    Thanks

  • Comment author was deleted

    May 22, 2013 @ 15:57

    Hey,

    To attach extra functionality to a form please check out the workflows, details on attaching workflows http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Editor/Attaching-Workflows/

    You can write your own workflow types if the built in ones don't do what you want

    http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Extending-Contour/

  • J 447 posts 864 karma points
    May 22, 2013 @ 17:38
    J
    0

    I have read those links around 10 times :( and im obviously missing some point on how to get the value from the control on the form.

    Could you please give me an example of getting the selected value from a dropdown and then performing some action with it as that may just save me all this confusion.

    Thanks

  • Comment author was deleted

    May 24, 2013 @ 14:27

    Well you'll basicly have 2 options, write a custom workflow type that will do what you want, to get examples on that just check the shared sourcecode for all the default providers http://our.umbraco.org/FileDownload?id=5060

    Or you could also create a code first form http://www.nibble.be/?p=205 (there you have a submit method that will provide you with the values and you can then perform an action based on that)

Please Sign in or register to post replies

Write your reply to:

Draft