I have a repeating panel listing entries of table1. (Meine Fundscheine)
I’ve created a button in reach row to add an entry in table 2 (Fahrteinsätze) and when i click on that button i want to be able to fill in a form which is creating an entry in table 2 with a link to the table1.
I tried to open the second form like this , but when i do so i get data-bindings errors on the second form as the elements do not match
I’d normally use an alert to display the second form, so that when the user is done with it the first form with the repeating panel is still visible. Here’s an example of using an alert to display a form: Anvil | Login
Hi, that knyou for your quick response. I’ve tried it with an alert as it would be indeed the nicer solution. However I can’t get the Google maps Auto complete to work in an alert so far and this is a must have for my planned app.
That is a perfectly valid way to pass information from one form to another @florian.hammers .
Another good way is like @jshaffstall described using an alert box.
Any normal whole page form you can create that would support your google maps auto complete, etc, can also be turned into a component.
When you pass the form as the content property of the alert you create it will open the form inside of that alert box.
From inside your passed in form, once you have gathered all of the information you need from the client/user, you can create a data structure holding that information and pass it back as the result of the alert() by raising the close event of the alert box with a value that contains the information you would like to “pass back”.
So somewhere on the form you might have a submit button that contains the following: