Jump to content
  • 0

Re-Direct User if Value Already Present


nicholasnicola

Question

3 answers to this question

Recommended Posts

  • 0

You can wrap the "Value already present" error message in the Localization with

tags,

and have JavaScript code in the DataPage to detect when the message is found in the DataPage, then open the login page.

1. Edit the Localization

Edit Localization of this DataPage. Proceed to the Settings screen. Find the Forms/Details Pages section and select Messages. Element ID #151 is the "Value already present" message. Customize the HTML text by adding an extra div tag around the message.

<div id="valueExist">Value already present</div>

2. Edit the Report DataPage

Paste the following code into the Footer of the Configure Fields screen. Remember to change the "URL of the login page".

<script>
function load_Login_Page()
{
if (document.getElementById("valueExist"))
window.location.href = "URL of the login page";
}
window.onload=load_Login_Page;
</script>
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
Answer this question...

×   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...