Skip to main content
Question

Button that creates a new record based on the selection in the new record

  • May 13, 2022
  • 0 replies
  • 44 views

I have an app with a Companies Table and a Offices Table related by a one Company to many Offices relationship. When a Company wants to create a new Office request, there is a few types of request to choose from (New, Renewal, Relocation), based on which choice is selected, certain info is shown/hidden on the Office record.

Is it possible to create a button on the Company table that when clicked will create a new record in the Office table utilizing the specific type of request the user wants?

For instance, if ABC Company wants to Renew a current office space, they would be able to click on a "Renew" Button and it will create a New Office record where "Renew" is already selected in the Type: dropdown so the correct information is already shown/hidden.

Purpose being to save the user the step of having to click the New Office button and then selecting the type of Request from the dropdown.

------------------------------
Chris Swirtz
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
Can you post (copy/paste)  the code for your current Add Office button, and let me know the field ID# of the field you want to populate. The I will show you the simple change to the code.

------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------