Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Does anybody know how I can create a checkbox list data type with the items checked by default but can be unchecked and saved in the Umbraco admin site?
Many thanks,
Braydie
Hey Braydie,
Something like Hendy's http://ucomponents.codeplex.com/wikipage?title=XPathCheckBoxList&referringTitle=Documentation is great for this.
Rich
Hi Rich, thanks for your reply, however the items that I have in the checkboxlist are not nodes so using XPath would not be appropriate here..
Hi Braydie,
What's your data source ? how about an event handler with the Document.New event to automatically set the property value so that they all checked ?
or use the Standard Values package ?
HTH,
Hendy
Hi Hendy,
I ended up using an event handler to do this and it seems to be working okay! Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to set CheckBoxList items to be checked by default
Hi,
Does anybody know how I can create a checkbox list data type with the items checked by default but can be unchecked and saved in the Umbraco admin site?
Many thanks,
Braydie
Hey Braydie,
Something like Hendy's http://ucomponents.codeplex.com/wikipage?title=XPathCheckBoxList&referringTitle=Documentation is great for this.
Rich
Hi Rich, thanks for your reply, however the items that I have in the checkboxlist are not nodes so using XPath would not be appropriate here..
Hi Braydie,
What's your data source ? how about an event handler with the Document.New event to automatically set the property value so that they all checked ?
or use the Standard Values package ?
HTH,
Hendy
Hi Hendy,
I ended up using an event handler to do this and it seems to be working okay! Thanks
is working on a reply...