AndrewFry
6 years agoQrew Assistant Captain
Pre-populate Dropdown Field on Button click
I have a Notes table that is related to multiple other tables.
Each of those tables' forms have an "Add Note" button which takes me to the Note's form.
In the Notes form, there is a Type dropdown menu, and a Subject dropdown menu.
The Subject is conditionally based off of the Type menu.
Is it possible to change the URL in the buttons to pre-populate the Type dropdown with the "type" corresponding to the form the link came from?
Example:
I am in the Jobs form, I click the "Add Note" button in the Jobs form.
The button takes me to the Notes form where the Type is pre-populated with Job due to the Add button having been pressed in the Jobs form.
I have the Type field in Notes already populated with the corresponding names of the different tables/forms.
I would like it so that when I click the "Add Note" button, it pre-fills the Type with Job, or Assignment, or Work Order, or etc etc, in the Notes form, based upon in which form the Add Note button was clicked.
The Type field in Notes id fid 34.
My ultimate goal is to get the Type pre-populated with the name of the Form in which the "Add Note" button was clicked, whether that is via the button URL being adjusted, or some other way, it makes no difference to me.
Thoughts?
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------
Each of those tables' forms have an "Add Note" button which takes me to the Note's form.
In the Notes form, there is a Type dropdown menu, and a Subject dropdown menu.
The Subject is conditionally based off of the Type menu.
Is it possible to change the URL in the buttons to pre-populate the Type dropdown with the "type" corresponding to the form the link came from?
Example:
I am in the Jobs form, I click the "Add Note" button in the Jobs form.
The button takes me to the Notes form where the Type is pre-populated with Job due to the Add button having been pressed in the Jobs form.
I have the Type field in Notes already populated with the corresponding names of the different tables/forms.
I would like it so that when I click the "Add Note" button, it pre-fills the Type with Job, or Assignment, or Work Order, or etc etc, in the Notes form, based upon in which form the Add Note button was clicked.
The Type field in Notes id fid 34.
My ultimate goal is to get the Type pre-populated with the name of the Form in which the "Add Note" button was clicked, whether that is via the button URL being adjusted, or some other way, it makes no difference to me.
Thoughts?
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------