Page 1 of 1

DropDown on pick Yes copy data to another table

Posted: 2018-12-25 22:12
by mskuodas
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

Re: DropDown on pick Yes copy data to another table

Posted: 2018-12-29 11:57
by pbottcher
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.