Hi
I have a calculator as an example, using SharePoint as the base I have a choice of say male and female. Instead of a dropdown I would like a button one being male and the other being female. How can one use buttons instead of drop downs?
Thanks
Solved! Go to Solution.
Hi @mezcalbean ,
Put them both in the Data Card and delete the Drop-own. Set a Variable on each OnSelect
UpdateContext({varGender: "Male"})
and Female for the other one. The Update for the Card would be (if writing back to a Choice field)
{Value:varGender}
or a Text field
varGender
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @mezcalbean ,
Put them both in the Data Card and delete the Drop-own. Set a Variable on each OnSelect
UpdateContext({varGender: "Male"})
and Female for the other one. The Update for the Card would be (if writing back to a Choice field)
{Value:varGender}
or a Text field
varGender
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @WarrenBelz
thank you for the quick reply
Apologies for not completely understanding your reply.
I have updated the data card but there is an error
I have added two other screen shot one of the card and the SharePoint name
Thank you for your help
Regards
That is just the error box - you can either delete it (as well as the star) or set the Y to Parent.Height - 5
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
User | Count |
---|---|
252 | |
102 | |
94 | |
50 | |
37 |