Jump to content
  • 0

Access value from Session


narayan

Question

4 answers to this question

Recommended Posts

  • 0

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>
Link to comment
Share on other sites

  • 0

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.

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.

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...