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
change selection after user input
Re: change selection after user input
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.
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.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: change selection after user input
thank you for your ideas, I will try it out and report back