cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom javascript functionality to document edit properties form

sihnu
Champ in-the-making
Champ in-the-making
Hi,

is it possible to add some custom javascript functionality to a document edit properties form? I would like to add a functionality where there are two select fields. The other one is hidden and when the other one gets a certain value the hidden field is revealed. Very simple functionality and I don't need help with it. But I don't know how or what would be the best choice to run javascript at edit properties form.

Thanks in advance.
1 REPLY 1

romschn
Star Collaborator
Star Collaborator
I have not tried this but in order to achieve this you can try something like below -
Approach-1. Add a dummy control (custom ftl file) to your display form and call client side custom java script from that dummy control
Approach-2. Make a customization of selectone.ftl to add the custom javascript file and handle the show/hidden functionality accordingly.


Hope this helps.