最近の検索


最近の検索はありません

Display Text Field in Submit a Request Form

回答済み


投稿日時:2022年5月31日

For 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?


0

1

1件のコメント

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:

  1. Go to Zendesk -> Admin Center -> Objects and Rules -> Tickets -> Fields and edit the field you'd like to update the description for.
  2. Get the Field ID # and empty out the current Description shown to customers field
  3. Save the field
  4. Go to Zendesk -> Guide -> Guide Admin -> Customize Design and click Customize for the theme you'd like to edit
  5. In the lower-right, select Edit code
  6. In your code editor, locate script.js
  7. 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!');
});

0


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿