Copied to clipboard

Flag this post as spam?

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


  • Paul Griffiths 370 posts 1021 karma points
    Feb 12, 2014 @ 17:17
    Paul Griffiths
    0

    Passing values from checkbox list control on a usercontrol to a property on a node with checkbox list datatype

    Hi guys

    Yet again I am struggling to accomplish something through the use of a user control and extending umbraco.

    I have created a checkbox list data type called Function types from the developer section in the umbraco backend and I have added some pre values e.g.

    Birthday Party 33 Delete sort

    Family Reunions 34 Delete sort

    Formal Parties 35 Delete sort

    Christenings 36 Delete sort

    Graduation 37 Delete sort

    I have created a user control and added a check box list control called chkFunctionTypes. My plan is to allow the user to select values from the front end and once they press the save button I want to populate the node (with the check box data type assigned to it) in the umbraco backend with the selected values. In addition I want to repopulate the user control when the user revisits the form to make changes.

    I have a fair few options and I was thinking to use a for each loop to target the values because my code file would me rather huge.

    Can this be achieved and if so am I thinking about this correctly? Im completely stuck at the moment :( Im using umbraco v6.1.6

    Thanks in advance

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft