full disclosure, I am a newbie, I don't know what I don't know.
I'm using validators reasonably successfully in this page and others, but I cannot figure this one out.
There are 5 yes/no fields on my page and a hidden file column field.
if any of fields 1-4 is "yes", the file field is revealed.
I would to add a validator that checks that there is a file entered in the field, but only if any of fields 1-4 is yes.
I have everything up to the evaluation function, and the "check fields" portion of the evaluation function is straightforward (the same as the working hide/show logic - ugly but functional 😉) but I cannot fathom how to check that there is a file uploaded.
If anyone could help me with that logical test, I would be truly grateful!
I've cannibalised the built-in evaluation function used when making the file column required in studio ValidatorTrim(ValidatorGetValue(val.controltovalidate)) != ValidatorTrim(val.initialvalue)
but no joy. There doesn't seem to be much out there in google or chatGPT that understands file column - all the suggestions have been to check the length of the first element of files and my understanding is that a file column is a single binary object?
What method or technique do I use to check that the file column is not empty???
TYVM in advance!