I am trying to ensure that no matter the amount variable tagged text elements we have, that we can search the output for missing variables from the data.
I know I would have to do something along the lines of the following JS for each variable we use, but I am hoping I can do this in the OnRecordStart rule and it will work in the individual text rules that already exist outside of the ORS.
var greetingText = '<span color="' + Greet_color + '" font="' + Greet_font + '" pointsize="' + Greet_size + '">';
//Inserting Empty Field! when data is absent
if (Field("Greeting") == "")
greetingText += "Empty Field!" + '</span>';
else
greetingText += Field("Salutation") + " " + Trim(Field("Greeting")) + Field("Punctuation") + '</span>';