I have an RG with Driver ID numbers (left column). User needs to select 1 or more drivers, using the Checkbox input, then press the Select driver button to proceed:
How do I create a list of the selected drivers?
I can start a basic workflow like this:
but can’t work out how to code (sorry!) the requirement that the checkbox is “yes”.
the custom state needs to be of type “Driver Thing”, and make sure you check “…is a list”.
.
You can add the custom state to any element on the page, even the page itself.
Then you need to add an event tied to the checkbox element in the RG cell “when input checkbox is yes…” set the driversList state to driversList plus item:[driver in current RG cell]. That will add the selected driver to the driversList state. You can use driversList <>uniqueID to remove a driver from the list.
I suspect you’re not seeing the unique ID option b/c you haven’t made the State a list, but could be wrong.
Hi,
I went back over the structure and found that my RG inner cells weren’t actually “below” the RG.
I’ve made the custom state (selectedGW) a list of numbers, added to the nearest page.
Curious - I have got the workflow working for the case where the driver is NOT in the selectedGW list, but I still have the old problem (unique id not in the filter dropdown) for the case where the driver IS in the list.
Strange!
@rob1 I just posted a video walk-through showing how to do this exact feature if it helps (or if anyone else is interested): https://youtu.be/yahP3RyVggY
My problem (couldn’t get unique id to appear in the :filtered box) is solved!
The problem was that my state (selectedGW) was a list of numbers. I changed this to a list of Drivers and that fixed it.
Seems obvious now that a number can’t have a unique id
But please consider this another vote for having a :minus operator.
Great video Gaby and great support from Daniel too.