How to disable the ticket form dropdown?
Answered
Posted Oct 01, 2018
Does anyone have some custom javascript that would allow me to disable the dropdown for form submission when someone lands on a specific form? I've tried everything but it seems like the from request drop down doesn't behave like a normal drop down.I want this to be un-selectable when a user lands on a certain form. There a few hidden forms we send users to from time to time but if they click on the drop down, they can navigate out of that form and not be able to get back. Any help would be extremely appreciated!
0
38
38 comments
Ifra Saqlain
Hey David,
Use the given code: For script.js file
Make sure, document_head.hbs file must have CDN of jquery:
Thanks
0
Brandon
Hey guys.
So, I'm really in need of your help.
I'm also trying to eliminate the ability to choose between forms, and I can't seem to place things correctly.
Used this:
And this:
All under script.js, but still I can choose between them.
HELP!
0
Ifra Saqlain
Awesome!
0
Paul Strauss
Awesome. That worked.
0
Ifra Saqlain
Hi,
See the issue, you will have. to add jQuery CDN on document_head.hbs file.
Add the CDN:
See the below screenshot:
Thanks
Ifra
1
Ifra Saqlain
Okay, can you share the URL of your public theme so I can figure out the issue?
0
Paul Strauss
Thanks, 367066863047 - I tried adding that code to the theme's script.js file as you recommended but the drop-down menu still appears for some reason:
0
Ifra Saqlain
Hi pstrauss.
Just copy the below code and paste it into your script.js file under the DOM function.
Screenshot for the same:
If any query, let me know :)
Thank You
Team Diziana
1
mccabe.tonna
27941396527 in your help-center, go to your theming, customize, edit code (bottom)
access your script.js function and plop this in there.
Then submit
This will hide the form selector IF they end up on this form. You may need to reference this form via URL directly.
In your script.js file, it should look like this.
Let me know if this works for you
0
Paul Strauss
I'm trying to hide the "please choose your issue" drop-down. I don't want the user to be able to select which form they are using.
0
Sign in to leave a comment.