Page 1 of 1

change selection after user input

Posted: 2023-11-27 10:18
by tsmets
Hello everyone,
First of all, I have to say that Appgini is a great everyday helper.
We have already replaced several solutions and Excel files with Appgini.
My current project presents me with the following challenge.

I have a form with several drop-down menus.
In the first DropDown is e.g. for selection : order;; offer;; return

My goal is, when the user selects "order", that the next field contains e.g. article number.
If the user selects "return", the next field should contain the delivery note number, for example.

In other words, the selection option should be dependent on the previous selection.
I hope I was able to explain it correctly. Surely this is solved via the hooks or ?

Best regards
Thorsten

Re: change selection after user input

Posted: 2023-11-27 10:49
by jsetzer
As a starting point, there are two tasks here:

1. You need two different lookups, one for articles, one for delivery notes. Configure them a usual. They must not be required as only one of them will have a value later on, but one of them will not.
2. Hide both on load, then show one of them depending on selected option value. You can listen to the change event of the form with javascript, then call a function which reads the selected option, then hides/shows one of the lookups.

Re: change selection after user input

Posted: 2023-11-28 08:43
by tsmets
thank you for your ideas, I will try it out and report back