TannerCarter Posted March 14, 2012 Report Share Posted March 14, 2012 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; document.getElementById('InsertRecordHaulerDestination').value=cont; } document.getElementById("caspioform").onsubmit=calculate; Quote Link to comment Share on other sites More sharing options...
ShWolf Posted March 22, 2012 Report Share Posted March 22, 2012 Hi, It's not clear. Could you give more information? Or provide a link to the DataPage. Do you open this DataPge inside Bridge? Or it is deployed DataPage? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.