Hi Zoho,
I have the following script on the "On Add -> On Validate" of a form:
Current_Ins_Amount = (Insurance_Insured_Amounts[(Project_Name = input.Project_Name && Ship_Name == input.Ship_Name)].Insurance_Type).getall();
if (!Current_Ins_Amount.contains(input.Insurance_Type))
{
alert "There is no amount entered for this insurance type. Please update the amount in the following dialog box";
openUrl("#Form:Insurance_Insured_Amounts?Project_Name=" + input.Project_Name + "&Ship_Name=" + input.Ship_Name + "&Insurance_Type=" + input.Insurance_Type + "&Disable_Fields=true&show_popup_text=true", "popup window");
cancel submit;
}
The script checks if the insurance entered in the form has an entry on another form, and if it doesn't - the other form should open in a popup window so the user will enter the details (it should not let the user add the record if the insurance type does not have an entry under "Insurance_Insured_Amounts".
When I check it, it does pop up the error message and cancel the sumbit, but no popup.
What am I missing here?
this also happen when I try to fix the "OpenURL" on a rule under "on user input" on a field.
When I tried the script on an html page - the rule and OpenURL command were working fine.
Thanks
Ravid