I have created a javascript function which can trigger either a Hotspot link or a button which has notes formula behind it. This code behaves as expected in Internet Explorer.
Here are the Submit functions which trigger either the ‘SubmitSurvey1’ or ‘SubmitSurveyAnon’ links
function SubmitSurveys()
{
for (var i=0;i<document.links.length;i++)
{
if (document.links[i].name==“SubmitSurvey1”)
{
document.links[i].onclick();
}
}
}
function SubmitSurveyAnonymously()
{
for (var i=0;i<document.links.length;i++)
{
if (document.links[i].name==“SubmitSurveyAnon2”)
{
document.links[i].onclick();
}
}
}
The Hotspot links contain no text to make them appear invisible. The links are succesfully triggered in the Internet Explorer, however, the links are not triggered in the Notes 6 Browser.
As an alternative, instead of using links I used buttons with the HTML style attribute ‘visibility: hidden’ again this works well in Internet Explorer the button is hidden when the form is viewed in Internet Browser, however the button is visible in the Notes 6 Browser.
Here’s the code which triggers the formula buttons
Here’s the SurveySubmit Button function
function SurveyButton()
{
document.forms[0].SurveySubmitButton.click();
}
Summary: For the Notes 6 Browser in the case of the links the formula behind them is not triggered, however when using the buttons the formula is triggered but the buttons are visible.
Could anyone please advise if it is possible to do one of the following:
-
For the links to behave as expected in a Notes 6 Browser Or
-
If there is another attribute I can use which will hide the button but which will still be ‘seen’ by the javascript