Hi Tom,
You have not stipulated whether two of the variables are numeric value variables, or text variables?
(When you preview the page does a 0 (zero) display in any of the input boxes?
To elaborate on the postings here, following are some more examples....
--------SCRIPT---------
You cannot have spaces in object names in OpusScript, so your Script Action box would read....
if (employee_number == "" || territory_number == "" || user_name_first == "")
{
Blank_fields_notification.Show()
}
else
{
Info_verification.Show();
Blank_fields_notification.Hide()
}
---------ADVANCED CONDITIONS--------
Using the 'if condition' on advanced conditions, as Melanie has said you need to remove the brackets. Also there is a little glitch/bug in the error message at the bottom of the Advanced Conditions box which will always result in "Expression contains errors" -- even if the code is correct. DW are aware of this little hiccup, but it will not affect things.
In the Advanced Conditions field you would have what you have shown in your screenshot (without brackets)....
employee_number == "" || territory_number == "" || user_name_first == ""
--------SCRIPT IF USING NUMERIC VARIABLES---------
Note the numeric values (zeros), do not require to be enclosed with quotes as they are not strings of text....
if (employee_number == 0 || territory_number == 0 || user_name_first == "")
{
Blank_fields_notification.Show()
}
else
{
Info_verification.Show();
Blank_fields_notification.Hide()
}
---------ADVANCED CONDITIONS IF NUMERIC VARIABLES--------
In the Advanced Conditions field you would have what you have....
employee_number == 0 || territory_number == 0 || user_name_first == ""
As per the Script example, Numbers do not require to be surrounded by double quotes.
-------------------
Tom, there are even other ways of code for numeric values, but I doubt you want things complicated here. Feel free to ask for further help. I only know too well what it's like when first learning script!
I'm sure hope DW or other scripting experts will comment if my examples are incorrect. I am certainly no expert when it comes to OpusScript.
PS: for Melanie ---
Is there is a little typo omittance in your IMP?
You have: territoryid ="" // should be ==""
(delete your zero and re-enter the zero and you'll see what I mean)
