Solved
File Name Validation
Hi, everyone!
I have a problem, I'm designing an interface where you can attach a file but the file must have a nomenclature.
Example:
INVENTARIO (always) PRESENT MONTH PRESENT YEAR
INVENTARIO DIC 2023
But I tried with the follow code:
a!localVariables(
local!var: {
"ENERO",
"FEB"
},
local!var2;
{
a!fileUploadField(
saveInto: local!var2,
value: local!var2,
label: "File Upload",
labelPosition: "ABOVE",
validations: {
if(
fv!files.name = {"INVENTARIO" & upper(tostring(datetext(today(), "MMM"))) & upper(tostring(datetext(today(), "YYYY")))},
{
"Ingrese un documento nombrad correctamente."
),
}
)
}
)

