I have a DropDown as a part of a form. I set the Allowed Values on the card: ["" , "Glass Bottle" , "PET Bottle" , "Carton" , "Pouch" , "Bulk" ] and then the dropdown's Items property is Parent.AllowedValues.
I have an icon that is conditionally enabled via DisplayMode property: If( frm_NewItemDetail.Valid, DisplayMode.Edit , DisplayMode.Disabled )
If I select any value other than "Glass Bottle" from my dropdown, the enable logic works. If I select "Glass Bottle", the icon stays disabled.
I have deleted it and recreated. I have logged out and back in. I am not sure what could be wrong. Hoping it is something simple I missed.
Solved! Go to Solution.
Just to be clear (because you didn't show the formula for your label) - you have the text property set to theDataCard.Valid and not yourForm.Valid correct?? Need to address JUST the datacard - not the form!
Also...you mentioned that you change the spelling to "Glas Bottle" and it still always showed not valid. What if you changed it to "abcde" - does it still show as not valid when that is chosen?
What is the Update property of your Datacard?
The .Valid property of the form essentially just looks at any datacards that have Required set to true and ensures that they have something coming from the Update property. IN other words, if a card is required and the formula in the Update property produces a blank value, then the form is not valid.
The Update Property is set to: CardName.Selected.Value
And CardName is the name of your Dropdown control?
If yes...next question - to be clear - you are stating that if you select "Carton" in the CardName dropdown, that the form is valid, but if you select "Glass Bottle" in CardName, the form is NOT valid?
I used CardName for simplicity of example, but yes. The update property matches the drop down name.
Also yes. If I select any value other than Glass Bottle, the form is valid.
Okay...the mystery deepens!
In your screenshot, you had "Carton" selected:
Change your selection to "Glass Bottle" and look at that formula again...does it show "Glass Bottle"?
I had two different screen shots. First one was Glass Bottle selected. Second one was Carton Selected. Trying to show they look the same in Card Update
Ah sorry...missed that! Yes. Looks good.
Okay - there is no problem then with that card. You can validate the validation if you like by placing a label on the screen with a Text property of yourDataCard.Valid
Please make sure this shows true for Glass Bottle and any other selection you make (except the empty one - that should show false)
I tried to remove the "" option from my allowed values. I tried to put other test values in front of "Glass Bottle". I changed the spelling to "Glas Bottle". Nothing changes behavior.
Just to be clear (because you didn't show the formula for your label) - you have the text property set to theDataCard.Valid and not yourForm.Valid correct?? Need to address JUST the datacard - not the form!
Also...you mentioned that you change the spelling to "Glas Bottle" and it still always showed not valid. What if you changed it to "abcde" - does it still show as not valid when that is chosen?