Example -
Validation: Filename cannot contain special characters (for example, / \ ; : " | ? ' < > * ).
Expression evaluation error: Syntax error. Details: Expression evaluation error : Invalid character found in expression: |
Discussion posts and replies are publicly visible
that did not work - need to show the validation message on the screen for fileupload component
a!fileUploadField( label: "Upload File", target: cons!FOLDER_CONSTANT, value: ri!uploadedFile, saveInto: ri!uploadedFile,
validations: if( and( not(isnull(ri!uploadedFile)), length(stripwith(ri!uploadedFile.name, "\ / ; : "" | ? ' < > *")) <> length(ri!uploadedFile.name) ),"Filename cannot contain special characters (for example, / \ ; : " | ? ' < > * )." null))