Conditional Dropdown Boxes

Everything related to Hesk - helpdesk software

Moderator: mkoch227

dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: Conditional Dropdown Boxes

Post by dr_patso »

I think what i'm trying to accomplish here is #2 on the suggestions page. I was getting somewhere with the hiding then for some reason internet explorer chooses to render it completely out of whack.... it might be better to use jquery for something like this since each browser handles javascript extremely different and I can't bother to make if then statements for browsers...

The other thing is this makes it entirely too difficult to implement new custom fields, best to just wait and see what hesk 2.5 has to offer hopefully next year, as this project would probably take me a year of my free time knowing what i know.
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: Auto Complete Dropdown Boxes

Post by deserteagle369 »

I use auto complete dropdown boxes instead of conditional drowdown boxes. Image

Because there is no parent category field for ticket but article category has, if you have same category for ticket you can refer to that, those categories with parent id = "1" are top categories.


For complete instruction, follow below post:
viewtopic.php?f=14&t=4494&p=19594#p19594
Last edited by deserteagle369 on Sun Apr 07, 2013 8:57 am, edited 3 times in total.
Eagle
Life is a journey.
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Conditional Dropdown Boxes

Post by steve »

Any idea how to modify the above code to allow for a comma delimiter and continue using the jqurey.
-Steve
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: Conditional Dropdown Boxes

Post by Lisaweb »

Hi guys!

I have a new client who really needs this functionality... but there are so many twists and turns in this thread, that I am at a loss. Did anyone truly have success with this? If so, what did you end up doing? I will gladly send a Paypal tip to whoever is willing to post the code that worked for you.

Thanks much for any help you can provide!

-Lisa
- Lisa
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

Re: Conditional Dropdown Boxes

Post by plc »

Hi Lisa.

Yes this post certain does contain some misleading/contradicting info to say the least. So much so that I had successfully done this as a monkey-see-monkey-do programer and now I can't even repeat it after upgrading revisions ;)

All I can do is plead/suggest to those capable to revise the code so that this 'feature' be more integrated in the core of the code. Clearly it's a need amongst ppl using this.

How about it guys? Please...Pretty please?
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

Re: Conditional Dropdown Boxes

Post by plc »

...might I also add that one of the confusing points here is whether we're discussing the front end or back end. For all intents and purposes, I've been solely referring to the front-end/user side which is a different file with regards to editing the config.

Looks to me like although deserteagle369 successfully added the feature in question, he/she is referring to the back-end.
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: Conditional Dropdown Boxes

Post by Lisaweb »

Thanks for your reply. I actaully need it for the backend - but I don't know enough about PHP to understand how to impliment deserteagle369's instructions. So I just now PM'd deserteagle369 for help. I will post whatever I learn from them in this thread.

Thanks again!
- Lisa
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

Re: Conditional Dropdown Boxes

Post by plc »

Lisaweb wrote:Thanks for your reply. I actaully need it for the backend -
In that case perhaps you could start a separate thread entitled "conditional dropdown boxes in back-end" and maybe I'll start "conditional dropdown boxes in front-end"? I'd also suggest referencing this thread in the original post on the new thread as to not lose any info already gained.

...I know we're likely to revisit all this after upgrades and it'll likely be a while in between.

Phil
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: Conditional Dropdown Boxes

Post by deserteagle369 »

Hi, guys

Where to store the sub category value? For example:
Parent category
Phone
Sub
iPhone
Android
Blackberry

Parent category
Os
Sub
Windows
Mac
Linux

If put in custom field that good for maintenance the value but you need a empty value for each, otherwise you will get something like this
Custom1 phone
Custom2 android
Custom3 windows
Eagle
Life is a journey.
Post Reply