
Above is what I am working with. If the Source combobox includes '3rd' then the datacard below it shows. That datacard also becomes required using this code.
If("3rd" in Source_CB.Selected.'Source (cr9c7_name)', true, false)
Now, if the "** Add a 3rd Party **" option is selected the "Add 3rd Party" text box appears. You enter a value and click "Add" and the new value is populated in the 3rd Party combobox. That all works great except when I come to validation. First, if you choose a "Source" and don't do anything to account for the "** Add a 3rd Party **" option the form validates and is submitted with the 3rd party being "** Add a 3rd Party **". I don't want that to happen. What I was originally thinking was that there was some logic that if "Source" contained '3rd' AND the "3rd Party" combobox had a value of "** Add a 3rd Party **" then the form would not validate. I couldn't get that to work. I tried something like this:
If("3rd" in Source_CB.Selected.'Source (cr9c7_name)' && '3rdParty_CB'.Selected.'Third Party (cr9c7_thirdparty)' = "** Add 3rd Party **", true, false)
Then I was thinking what if I can make the "Add 3rd Party" text box required when "** Add a 3rd Party **" is selected that might be the answer to this form validation issue. No such luck putting required on that second text box within a datacard.
I'm sure I am overlooking something simple here. Ultimately, I want to make the form invalid if the text in the "3rd Party" combobox is "** Add 3rd Party **"