We want to add a title for a section of checkbox fields to give our customers instruction. It would appear above the checkboxes and say something like “Please indicate which expenses you incurred”. I’ve included a screenshot of the section of this ticket form.
Thank you!
Anna
Best answer by aravind.sundararajan
Hello @brownae Thanks for posting this on the Community. Here’s how you can add static text to appear above the section:
Get the ID of the field above the section. In this case, the field would be “Travel Start Date”. Here’s how the ID of the element would look like (if you use inspect element on the ticket screen): Grab the ID value from the inspect window ie. helpdesk_ticket_custom_field_cf_store_1952170
Add the following code to the Admin > Portals > Customize portal > Portal Pages > Submit ticket section.
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script><scripttype="text/javascript">
jQuery(document).ready(function(){
jQuery('#helpdesk_ticket_custom_field_cf_store_1952170').after("<b>Please indicate which expenses you incurred</b>");
});
</script>
Replace the ID (helpdesk_ticket_custom_field_cf_store_1952170) with the corresponding ID of the element on the ticket screen.
Here’s how the static text would appear on the screen:
Hello @brownae Thanks for posting this on the Community. Here’s how you can add static text to appear above the section:
Get the ID of the field above the section. In this case, the field would be “Travel Start Date”. Here’s how the ID of the element would look like (if you use inspect element on the ticket screen): Grab the ID value from the inspect window ie. helpdesk_ticket_custom_field_cf_store_1952170
Add the following code to the Admin > Portals > Customize portal > Portal Pages > Submit ticket section.
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script><scripttype="text/javascript">
jQuery(document).ready(function(){
jQuery('#helpdesk_ticket_custom_field_cf_store_1952170').after("<b>Please indicate which expenses you incurred</b>");
});
</script>
Replace the ID (helpdesk_ticket_custom_field_cf_store_1952170) with the corresponding ID of the element on the ticket screen.
Here’s how the static text would appear on the screen: