Dec 18 2023 12:22 AM
Hi all,
I have a choice form field and a single line text form field. I would like the single line text field to be hidden except when Others is selected from choice form field. How do i do that?
If Others is selected, Relationship - Others field will appear. If not, it stays hidden
I have tried the following but it's not working.
Visible:
This is the error message that i got:
Dec 18 2023 04:24 AM
Solution@jeralynw I think you are trying to get the selected value from "data card" instead of drop down/combo box control - this is causing this issue.
Try this:
If(DataCardValue10.Selected.Value = "Others", true, false)
or simply:
DataCardValue10.Selected.Value = "Others"
where DataCardValue10 is the name of related drop down or combo box control
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Dec 18 2023 04:26 AM
@jeralynw Example of expanding the data card and finding out the related control inside it:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Dec 18 2023 05:39 PM - edited Dec 18 2023 05:56 PM
Thank you very much for your explanation!! It's easy to understand and your solutions worked.
The field is showing only when Others is selected.
However, now when i try to submit other options, the response does not flow through to my list.
I had made the Relationship - Others field mandatory.
When i made the field non-mandatory, the response can flow through.
How to make the field mandatory and still allow responses for other options to flow through?
Dec 19 2023 01:27 AM
@jeralynw Try this:
DataCardValue10.Selected.Value = "Others"
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Dec 18 2023 04:24 AM
Solution@jeralynw I think you are trying to get the selected value from "data card" instead of drop down/combo box control - this is causing this issue.
Try this:
If(DataCardValue10.Selected.Value = "Others", true, false)
or simply:
DataCardValue10.Selected.Value = "Others"
where DataCardValue10 is the name of related drop down or combo box control
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.