change selection after user input

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
tsmets
Posts: 3
Joined: 2023-11-27 09:15

change selection after user input

Post by tsmets » 2023-11-27 10:18

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

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: change selection after user input

Post by jsetzer » 2023-11-27 10:49

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.
Kind regards,
<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 readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

tsmets
Posts: 3
Joined: 2023-11-27 09:15

Re: change selection after user input

Post by tsmets » 2023-11-28 08:43

thank you for your ideas, I will try it out and report back

Post Reply