Display Text Field in Submit a Request Form
AnsweredFor my 'submit a request' form I have a field where a customer needs to select a priority for the ticket which should align to contractual obligations.
If I add the definitions to the description there is no way to add formatting i.e. paragraph breaks that I am aware off.
I tried instead to create a custom field (multi-line) which would be visible only but this text does not appear in the preview or form when added.
Any ideas?
-
Hi Graham Ferguson!
You can append text to the field with a little bit of scripting in your theme. This will append text to the field, a la Field Description, but you can format it as HTML and include breaks, formatting, etc.
Make sure jQuery is also installed in your environment.
Try the following:
- Go to Zendesk -> Admin Center -> Objects and Rules -> Tickets -> Fields and edit the field you'd like to update the description for.
- Get the Field ID # and empty out the current Description shown to customers field
- Save the field
- Go to Zendesk -> Guide -> Guide Admin -> Customize Design and click Customize for the theme you'd like to edit
- In the lower-right, select Edit code
- In your code editor, locate script.js
- Use the following code:
$(document).ready(function() {
$('div.request_custom_fields_fieldid#').append('html text here');
});Example:
$(document).ready(function() {
$('div.request_custom_fields_123456789').append('<b>Priority 1:</b> Things are on fire!');
});
Please sign in to leave a comment.
1 Comments