Multiple Buttons, one Edit Form
Posted: Tue Nov 14, 2017 8:10 am
Hi,
There are about 10 Button Objects on my Launch Form. Each of them should open the same Edit Form (creating a new record) and set a default value in a specific field.
I could create different Edit Forms for each Button but that would lead to too much redundancy (especially while having custom code attached)
I thought I could run a PHP code on button click to create a new record and set a value by sql for that one specific field and then run another code to take me to the newly created record (opening the Edit Form)
Is this something that can be done (and how?) or is there a better approach to do this?
Thomas
There are about 10 Button Objects on my Launch Form. Each of them should open the same Edit Form (creating a new record) and set a default value in a specific field.
I could create different Edit Forms for each Button but that would lead to too much redundancy (especially while having custom code attached)
I thought I could run a PHP code on button click to create a new record and set a value by sql for that one specific field and then run another code to take me to the newly created record (opening the Edit Form)
Is this something that can be done (and how?) or is there a better approach to do this?
Thomas