narayan Posted May 30, 2013 Report Share Posted May 30, 2013 Hi, I want to access a value from session in data-form. $first=$_SESSION['first']; how should we acccess this value into caspio form. please sent me solution ASAP Quote Link to comment Share on other sites More sharing options...
0 narayan Posted June 5, 2013 Author Report Share Posted June 5, 2013 how u can access it? can you sent me a syntax (code). Quote Link to comment Share on other sites More sharing options...
0 HongTaiLang Posted June 6, 2013 Report Share Posted June 6, 2013 If you want to receive the value in a field of submission form, the value can be got in javascript of page source code, and passed to Caspio form through document.getElementById. For example: <script type="text/javascript"> var firstValue= "<?php echo $first; ?>"; document.getElementById("InsertRecordFieldName").value = firstValue; </script> Quote Link to comment Share on other sites More sharing options...
0 Kayln123 Posted June 26, 2013 Report Share Posted June 26, 2013 Hi Session is a server value.You should get value from session on server and put it to java script. You can only use it if java script is embedded to the page as shown above, However it is not big limitation. You may define variable as shown above and pass it to the function which is defined in separate .js file. Quote Link to comment Share on other sites More sharing options...
0 Rakesh Posted May 9, 2019 Report Share Posted May 9, 2019 I need to track user logins at my Caspio dashboard but I am wondering how could I get login status from session? Quote Link to comment Share on other sites More sharing options...
Question
narayan
Hi,
I want to access a value from session in data-form.
$first=$_SESSION['first'];
how should we acccess this value into caspio form.
please sent me solution ASAP
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.