Field element rendered when select from dropdown

vaguemind

Vaguemind
i have a databasejoin element which fetch data from list ( company, individual, agent) i need when select company to fetch a field element that can write contact person related to the company ?
how i do that please
 
You can have different elements which are hidden/shown depending on the selected dbjoin value.
Add conditions in element's JS settings.
 
i made javascript plugin in the databasejoin elment , but its not working !! i have the following:

Database join element ( Agent, Company, individual)

and field element for the contact person related to the company if selected from the database join element , i made contact person as hidden and in the database join i made javascript plugin, the even , change to show contact person element when the value "company" shown ,, is this right ??

its not working !!
 
You can't show a "hidden" element via JS, it must be visible.
You must hide "on load" and show e.g. "on change"
 
Back
Top