ouni's user avatar
ouni's user avatar
ouni's user avatar
ouni
  • Member for 10 years
  • Last seen more than a month ago
  • Wisconsin, USA
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
answered
Loading…
revised
Update a record in custom module
Improved code formatting.
Loading…
suggested
Approve
awarded
comment
Insert code from module to .tpl
What you probably want is hook_form_views_exposed_form_alter(). Inside this function, add your button using the form API, and then use #attach to add a JavaScript file. In this file, you can use jQuery to hide the button on page load, and then make it reappear when other values on the form change. Another method is to use Form API #states, which may be able to handle the JavaScript part of it for you. Best of luck!
Loading…
comment
Insert code from module to .tpl
Can you elaborate more on the "series of operations"? From what I gather, you have a View with exposed filters, the user fills out the filters, submits the form, and then you want your button to appear, before the results are shown?
accepted
1
2 3 4 5