Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
cb_krcodetest
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Correct.I'm expecting that whenever you try to save a record it should fail (and display the text in the 'Error Message' text entry).
Works perfectly fine on our demo site. You need to either supply a value to the field or ensure it's marked required. A non-required empty field will ignore that validation (because it's not required to have a value so there's nothing to validate). Your $composite usage is not valid. It expects a true or false boolean response. You're returning a giant string so due to the IF check it probably is just treating it as valid, always. You'd need to better clarify what you're trying to validate for me to suggest anything further, but you're supposed to write PHP that does your validation and if it matches your validation return true and if not then return false.That is not happening on my site or the demo.
You either need to match the words exactly using a = operator or be sure you've used a wildcard for your LIKE usage. No idea how that table is setup so can't say for sure exactly if your query is working right. Your query should be doing a COUNT as well; as is you're returning a bunch of rows and there's nothing to validate from that. So your query probably should be the following.Also, I tried to use a CB Query Field Validation:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.