Simple Show/hide Element

Wrina

New Member
Hello to all, thanks for your help.

I have a simple request.
I have a drop-down menu element {contact_method} with email/phone options.

based on the selection of email - I would like the email element field to show and not the phone; and if {phone} selected the phone element, and not the email element to appear.

???(hope this is as simple as I thought)???

Fabrik v.3..
Joomla 1.5.26

Thanks for your help.
W.
 
You can use javascript on the element's setting page.

Try this:

Action -> load
do -> hide email_element when this == 0

Action -> load
do -> hide phone_element when this == 0

Action -> change
do -> show email_element when this == 1

Action -> change
do -> hide email_element when this == 0

Action -> change
do -> show phone_element when this == 2

Action -> change
do -> hide email_element when this == 0


To function you have to set your dropdown element as:

value=0, label=Select...
value=1, label=Email
value=2, label=Phone

Hope this is helpful.
 
You need to apply the filter to the element you want to control the phone element




Edit: Interesting my post shows twice :)
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top