Example of form/workflow to capture which radio button chosen?
Hello all,
I am expanding one of the Mailing Reports to add an additional form to ask if the user wishes to filter the results for owner occupied vs. non-owner occupied status or just return all records within the buffer chosen.
I can easily do this using a combobox and grabbing the item chosen and processing from there.
However, the use of a group of radio buttons for "All", "Owner Occupied", and "Non-Owner Occupied" really looks so much nicer (and is obvious they can only choose one). But I cannot seem to figure out how to capture which radio button was chosen. I have used these buttons before in other programming environments so I know logically what to do but the syntax has gotten me within Workflow. I realize I need to figure out which is checked, but cannot figure out how variables should be set, what Output Arguments should be, etc to get it to work. I have tried several combinations. I am new to this so this may be an easy question.
So, if anyone has an example of a form with a group of radio buttons showing how to somewhere capture if a radio button is checked, I would love to see it!
Thanks,
Carmen
-
Hi Carmen,
You'll need to assign the output arguments to Boolean variables, and then use if/then activities to determine which was selected. See example (https://support.geocortex.com/Data/Sites/1/radiobuttons.zip) here .
-Victoria
0 -
Victoria,
Thank you very much. I was doing something wrong between the arguments and variables (and trying to make it more complicated than it was). Your example made it perfectly clear and my workflow works great.
Carmen
0 -
Please update the link:
https://support.geocortex.com/Data/Sites/1/radiobuttons.zip
Thanks for your help0 -
You can now download the zip from here: http://data.latitudegeo.com/support/GSC/radiobuttons.zip 0 -
Thanks Victoria!
Nicu0 -
Is there a way to do this without nested If controls? Is there a way to place a value on a radio button or grab which radio button was selected from a group? A single output based on a group would be quite useful, as long as you can set the value for individual members of the group. 0 -
Did you ever figure that out, Marc? 0 -
What I'd like to do is set a string variable based on which radio button is selected and then use the variable in a where clause in a subsequent Query Task. Possible? 0 -
Rebecca. I posted an example of what you are after on Github (https://github.com/DigitalDataServices/samples/blob/master/RadioButtonChosenWorkflow.xaml) 0 -
Hi Tom, I am trying to utilize your sample workflow to allow a user to select a radio button, and filter the map based off of their selection. In your 'WhichRadioButtonChosen' Sequence, I've added a Set Layer Definition Activity to with... "DESCRIPTION = 'TOBACCO RETAILER - LOW RISK'" as the definition (There are three other If statments with Moderate and High risk as well) Should the SetLayerDefinition Activity filter the points in the map to only display the points with a Desciption of Low Risk?
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000TU6d&feoid=Body&refid=0EM60000000LzUc"_/_img_0 -
Lisa. Right after the Display Form, I would put a sequence in that you set the userChoice variable based on the rbX (e.g. 'TOBACCO RETAILER - LOW RISK', 'TOBACCO RETAILER - MODERATE RISK', 'TOBACCO RETAILER - HIGH RISK'). Then follow up with your SetLayerDefinition and RefreshMap. In the SetLayerDefinition, change the Defintion to "DESCRIPTION = " + userChoice. 0
Please sign in to leave a comment.
Comments
11 comments