DropDown on pick Yes copy data to another table

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
mskuodas
Posts: 22
Joined: 2018-12-16 19:53
Location: Lithuania
Contact:

DropDown on pick Yes copy data to another table

Post by mskuodas » 2018-12-25 22:12

Hello,

I have members form and there is option:
Is member returned from track? Yes / No.
Is it possible to make that when I change option to Yes, all members data copies to: returned members table with all his info? Thanks

pböttcher
AppGini Super Hero
AppGini Super Hero
Posts: 638
Joined: 2018-04-01 10:12

Re: DropDown on pick Yes copy data to another table

Post by pböttcher » 2018-12-29 11:57

Hi,

this should be possible via the hooks/<tablename>.php file in the <tablename>_after_inster function. You could check for the "from track" value and if it is yes you could use a SQL statement to copy your required data from the members table to the returned members table.

Post Reply