I have the follwoing script and it wont recognize and allow me to set a variable that includes the authentication field for the table. I cannot find out how to refernece it. When I view source it is "display only" so doesnt have a form id aas the other fields do. My script is as follows....
The issue is etting the "bride" variable which needs to be the "Username"
I have this set as an update form but it doesnt matter to me if it is a different kind of datapage such as details report. I just need to know how to reference the "Username"
Incidentally I also tried replacing getElementById("authefield:Username").value; with getElementById("EditRecordUsername").value; .......but no joy!
Any help much appreciated
function gup( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
var Tradesman_param = gup( 'Tradesman' );
var bride = document.getElementById("authefield:Username").value;
var newURL = "http://tozak.org/mywedding/my-jobs/bride-dashboard/request-a-quote/?username=" + bride + "&Tradesman=" + Tradesman_param;
window.location=newURL;
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.
Question
skywalker
I have the follwoing script and it wont recognize and allow me to set a variable that includes the authentication field for the table. I cannot find out how to refernece it. When I view source it is "display only" so doesnt have a form id aas the other fields do. My script is as follows....
The issue is etting the "bride" variable which needs to be the "Username"
I have this set as an update form but it doesnt matter to me if it is a different kind of datapage such as details report. I just need to know how to reference the "Username"
Incidentally I also tried replacing getElementById("authefield:Username").value; with getElementById("EditRecordUsername").value; .......but no joy!
Any help much appreciated
Link to comment
Share on other sites
4 answers to this question
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.