LIST and Form together: access to a list filter from a FORM button
Dear friend,
I've an article which includes (through the content plugin) both a list and a particular form, this one including some button plugin elements (button 1, button 2...). Moreover, some elements of the list are used as dropdown type filters (see attached figure).
The problem: when I push a button, the related javascript code should read the filter field value (let's say "Attivit?") to perform an action.
How can I reference the list filter from javascript included in the form button?
The field element, used ad dropdown filter, is act_id of the temp_report group: on the click event of the button plugin I've attached the following code :
alert($('temp_report___act_id').value);
but nothing happens (of course the command alert is used only as a proof). How to solve?
Thank you for your attention.
Cheers,
Roberto
Dear friend,
I've an article which includes (through the content plugin) both a list and a particular form, this one including some button plugin elements (button 1, button 2...). Moreover, some elements of the list are used as dropdown type filters (see attached figure).
The problem: when I push a button, the related javascript code should read the filter field value (let's say "Attivit?") to perform an action.
How can I reference the list filter from javascript included in the form button?
The field element, used ad dropdown filter, is act_id of the temp_report group: on the click event of the button plugin I've attached the following code :
alert($('temp_report___act_id').value);
but nothing happens (of course the command alert is used only as a proof). How to solve?
Thank you for your attention.
Cheers,
Roberto