Can we add a disclaimer to a custom dropdown field when a specific value is selected? | Community
Skip to main content

Can we add a disclaimer to a custom dropdown field when a specific value is selected?

  • September 23, 2022
  • 2 replies
  • 0 views

Hi, 

Can we add a disclaimer to a dropdown ticket field when a specific value is selected using JavaScripts? 

2 replies

Greg29
  • September 23, 2022

Hi Johnny! This is definitely possible, however the implementation is entirely up to you. I would recommend reading through these MDN docs on the topic.


  • Author
  • September 23, 2022

Hi @greg29

Thanks for providing the document I will go through it.  I've tried to use a script that operates correctly on custom dropdown fields, however it doesn't function when a certain value is selected from the dropdown field. 

 

$(document).ready(function() {
$('.form-field.request_custom_fields_id').append('<p>Click here for <a href="#>" target="_blank">Sample Text</a></p>');
});