Copied to clipboard

Flag this post as spam?

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


  • Kris Janssen 210 posts 569 karma points c-trib
    Nov 20, 2013 @ 09:05
    Kris Janssen
    0

    Populate Contour voting form with records from another form

    Hi guys,

    Say I have a contour form where people enter their personal records, say for job applications.

    I could then pull up the entries and display them somewhere for recruiters to browse through, in a standard html table with some sorting for good measure, this turned out to be easy enough.

    Would it next be possible to use all entries in a second form where e.g. recruiters could tally votes for their favorite candidates? I imagine I could try and generate a contour form with an entry box for e.g. recruiter name and three drop lists, 1st, 2nd and 3rd choice where each drop list is populated with the names of candidates...

    Better still, could I provide the table of all entries with a checkbox , such that people could vote right from the entry overview?

    Cheers,

    Kris

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 20, 2013 @ 09:32
    Tim Geyssens
    0

    You can create a custom prevalue source type :) that you can then hook up to your form

    Or if you don't want to create a custom type maybe setup a create as doc workflow so the possibilities are stored as umbraco docs and then use the default umbraco docs prevalue source type :)

    Makes sense?

  • Kris Janssen 210 posts 569 karma points c-trib
    Nov 20, 2013 @ 14:41
    Kris Janssen
    0

    Okay,

    But I guess things are easiest to do using the Code First route, right?

    I'll have a go at it...

  • Kris Janssen 210 posts 569 karma points c-trib
    Nov 21, 2013 @ 00:48
    Kris Janssen
    0

    Hi Tim,

    One additional question:

    I found your Nibble post: http://www.nibble.be/?p=86

    Seems adding custom pre value sources is quite easy. However, what if the pre value source is a DB that is continually updated? Will additions to the source be reflected "live" in the drop downs based on it?

    I guess it comes down to when a pre value capable field populates, only once at form design time or each time the form is displayed...

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 22, 2013 @ 11:06
    Tim Geyssens
    0

    Yup when db is updated the dropdown will also be updated :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 22, 2013 @ 11:06
    Tim Geyssens
    0

    So values aren't duplicated but it hooks it to the prevalue source

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies