Need UI Macro with the checkbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 03:15 AM
Hi All.
I want to have a ui macro with a checkbox and text to it like "I acknowledge the above statement". This will be on a request form and the check box needs to be mandatory.
So far im not able to get the check box and text on the same line and also how would I invoke the check box to be mandatory?
Any suggestions would be much appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 11:28 AM
Hi @nikhitha24 ,
PFB solution,
<j:jelly xmlns:j="jelly:core" xmlns:g="glide">
<!-- Wrapper div to keep the checkbox and text on the same line -->
<div style="display: flex; align-items: center;">
<!-- Checkbox with ID 'ack_checkbox' -->
<input type="checkbox" id="ack_checkbox" name="ack_checkbox" required="true" />
<!-- Text label next to the checkbox -->
<label for="ack_checkbox" style="margin-left: 8px;">
I acknowledge the above statement
</label>
</div>
</j:jelly>
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera