Jump to content

Javascript - HTML Datapage - Conditional Login


Recommended Posts

I have an authenticated HTML datapage and am trying to open a datapage based on a particular status in the database, but not able to read the variable correctly. Please help.

Script:

var cb_approved = '[@FDIC_Registration:Pre_Qual_Approved]'; (is this correct?)

if (cb_approved="Yes")

{

(need code to open datapage1);

}

else

{

(need code to open datapage2)

}

Link to comment
Share on other sites

  • 2 weeks later...

If your DataPage is an HTML DataPage then there is not connection to a table to read data from however if you are trying to read the data from the authentication table you can use the following format:

var cb_approved = '[@authfield:Pre_Qual_Approved]';

Pre_Qual_Approved is the field name in your authentication table. Also make sure this HTML DataPage has advanced options and passing parameters enabled.

Best,

Bahar M.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...