Jump to content

JS code is logging users out

Recommended Posts

I have java script in the footer of a submission form. I works fine for users that have Administrative Rights (access to all data pages), but it doesn't work for users who have access to only a number of data pages. These users have access to the particular data page where the code resides, but when they click submit, it still performs everything the code requires, but it then logs them out. Any ideas on why this is happening? See script below.

function calculate()


var e1 = document.getElementsByName("InsertRecordAGS_Email")[0].value;

var e2 = document.getElementsByName("InsertRecordHauler_Email")[0].value;

var e3 = document.getElementsByName("InsertRecordDestination_Email")[0].value;

var e4 = document.getElementsByName("InsertRecordAGS_Email2")[0].value;

var e5 = document.getElementsByName("InsertRecordHauler_Email2")[0].value;

var e6 = document.getElementsByName("InsertRecordHauler_Email3")[0].value;

var e7 = document.getElementsByName("InsertRecordHauler_Email4")[0].value;

var com_email = e1+"; "+e2+"; "+e3+"; "+e4+"; "+e5+"; "+e6+"; "+e7;

document.getElementById("cbParamVirtual1").value = com_email;

var all_email= document.getElementById("cbParamVirtual1").value;

var cont1= document.getElementsByName('InsertRecordHauler')[0].value;

var cont2= document.getElementsByName('InsertRecordDestination')[0].value;

var cont= cont1+" | "+cont2;




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.

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.

  • Create New...