This topic is locked

Dependant on list display

1/15/2007 3:33:50 PM
PHPRunner General questions
D
Dale author

This may seem like a wierd one, but I have an instance where I need the dependant On function but if there is NO value for category control I want the dependant list to show all.
How can I alter the function to display ALL of the secondary picklist is the value of the Category control is Null, (Please Select).

So if the user does not pick a category, the drop down list of the dependant on picklist displays all items in the list.
When they pick a category, it all works as it should.
Can anyone point me to a post or is this possible.

Alexey admin 1/16/2007

Dale,
you can do this modifying include\jsfunctions.js file.

Find this line there:

if (FirstValue.toLowerCase() == arr[ctr+2].toLowerCase())


and replace it with:

if (FirstValue=="" || FirstValue.toLowerCase() == arr[ctr+2].toLowerCase())

D
Dale author 1/16/2007

Many thanks Alexey,
It worked PERFECTLY. Chalk up another one for support. Excellent.