Need a method to clear field values on change of dropdown
Need a method to clear field values on change of dropdown
I have a project that keeps track of vacant rental units. I need an easier way to let users clear the fields. As of now they can change the status of the unit from vacant to occupied then they need to remember to clear multiple other fields like date of repair, lease date, reason vacant. It would be much nicer if I could simply have a script to clear the desired fields after the user selects occupied from the dropdown status box. Or, It could be done with a button that returns the fields to blank and changes the status to occupied. Any help is greatly appreciated!
- Attachments
-
- view of occupied unit after reset
- appgini-2.JPG (73.7 KiB) Viewed 822 times
-
- status change clear highlighted fields
- appgini-1.JPG (76.58 KiB) Viewed 822 times
Re: Need a method to clear field values on change of dropdown
Update:
I was able to accomplish this by using the mass update plugin.
I was able to accomplish this by using the mass update plugin.