Need a method to clear field values on change of dropdown

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
nandrew
Posts: 5
Joined: 2019-10-16 12:24

Need a method to clear field values on change of dropdown

Post by nandrew » 2021-02-04 04:15

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
appgini-2.JPG
view of occupied unit after reset
appgini-2.JPG (73.7 KiB) Viewed 822 times
appgini-1.JPG
status change clear highlighted fields
appgini-1.JPG (76.58 KiB) Viewed 822 times

nandrew
Posts: 5
Joined: 2019-10-16 12:24

Re: Need a method to clear field values on change of dropdown

Post by nandrew » 2021-02-10 17:11

Update:
I was able to accomplish this by using the mass update plugin.

Post Reply