Quantcast
Channel: Question and Answer » markup
Viewing all articles
Browse latest Browse all 40

how to fill some fields depent on the value of a list box

$
0
0

remember the create password page of Drupal! while you are entering characters it tells you how string is your password!

now I want to have something like this in a list box but a bit different. I want to show an image and a text depend on the item which is selected in the list box! How can I do it?

My first try was using conditional field but I have to add 120 image and text field to my content type and but lots of conditions to handle it. It doesn’t make sense!

My second try was using markup module but I didn’t know how to fetch the value of list box with ajax!

my third try was using entity referenced auto fill but when I select an item from the list box for the first time it fills the other fields correctly. but the next times it does not change any thing.

in addition, I need the image and text field to appear read only (non editable)

Do you know any other way to do that?


Viewing all articles
Browse latest Browse all 40

Trending Articles