Pretext: I want to make sure the user of my from has a ZOHO Account. To enforce this, the script below is intended to display the ZOHO sign-in block. Once signed-in, the rest of the form is displayed. This works well in the native ZOHO app, but stalls when embedded.
The name of this form is "Form". The first line checks to see if the user is signed-in. If not, the same form is reloaded with the special URL like "form-login" added.
if (zoho.loginuser == "Public")
{
openUrl("http://creator.zoho.com/niskypto/myapp/page-login/Form/", "same window");
}
else
{
some other code here
}