Can I restrict Date Field choices on a Help Center Form?

Answered

2 Comments

  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Andrew,
     
    There aren't any admin settings that would accomplish this, so the only way would involve customization of your Help Center theme.  Adding custom Javascript validation to the form to accomplish this can be a bit tricky due to the way the form's submission process works.  If you're interested customization, you can try a strategy of disabling the submit button until the start and end date form input values meet the constraints you've outlined here in your post.  
     
    The form input fields have an ID of requestcustomfields_<ticket_field_id> (where <ticket_field_id> is the ID of the field in your ticket field settings).  Your custom code can leverage that fact to locate the form fields and the values it needs to check.
     
    0
  • Andrew Kenny

    Thanks Christopher Kennedy

    0

Please sign in to leave a comment.

Powered by Zendesk