Hi
I am having the following code, which creates checkboxes with the names and id's mentored in code. I want a few of the checkboxes to be checked by default. How can do so?
My code
<activiti:formProperty id="travelerJourneyStep" name="Traveler journey step" type="checkbox" required="true"> <activiti:value id="Inspiration" name="Inspiration"></activiti:value> <activiti:value id="Shopping" name="Shopping"></activiti:value> <activiti:value id="Booking" name="Booking"></activiti:value> <activiti:value id="Pre-trip" name="Pre-trip"></activiti:value> <activiti:value id="On-trip" name="On-trip"></activiti:value> <activiti:value id="Stay" name="Stay"></activiti:value> <activiti:value id="Post-trip" name="Post-trip"></activiti:value> <activiti:value id="NA" name="NA"></activiti:value> <activiti:value id="Transverse" name="Transverse"></activiti:value> </activiti:formProperty> <activiti:formProperty id="submit" name="Submit" type="button" default="false" required="true"></activiti:formProperty>
you can init the property separately for each checkbox you want to display and provide a value in declaration.
e.g.
<activiti:formProperty id="propertyId" name="Property Name" type="boolean" value="true" />
Hope it helps.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.