Recent searches
No recent searches
Hiding the 'Your email address' field
Posted Jun 28, 2024
Is there a way to hide the default ‘Your email address’ field from a ticket form using JavaScript/other? We allow users at our retail locations to submit tickets after-hours from an iPad that is not signed in to any accounts, and we capture their info using a dropdown field for their store number; most of the users submitting these tickets would have no idea what the store's email address is, and it would be much easier if we could simply hide the field, or even turn it into another field entirely without the email validation being done (for instance, capturing the user's phone # rather than email address.)
0
3
3 comments
Davor Japunčić
Hey!
Not an expert, but this might be worth a shot. Here's the articles I used as sources for reference:
Add Custom Field for Store Number:
Click the Add field and create a dropdown field for the store number.
Customize the Help Center JavaScript:
Ensure the Form is submitted without Email:
If this works, you're good to go! If not…
Alternative Method Using API:
Enable API Token Access
Copy and save the token in a secure place.
Create a Custom HTML Form
Create an HTML file (
index.html
) and add the following form code. This form will be used to collect user inputs and submit them via the Zendesk API.Please replace
YOUR_ZENDESK_DOMAIN
,YOUR_ZENDESK_EMAIL
, andYOUR_ZENDESK_API_TOKEN
with your actual Zendesk credentials.Host the HTML Form
Follow the instructions of the chosen hosting service to upload and publish the HTML file.
Customize the Zendesk Guide (Optional)
Embed the hosted form URL in an iframe or use a script to fetch and display the form.
Testing the Custom Form
Hope this helps!
1
Justin Brooks
Davor Japunčić you're an absolute legend. The first suggestion you made under ‘Customize the Help Center JavaScript’ gave me what I needed right away. Thank you so much!!
1
Davor Japunčić
Justin Brooks happy to help man! :)
1