Hello,
If you are talking about populate a field in the form with the PHP Session Id, you will need some of javascript code in yourn form, for example, if you want to populate the fieldname1 field with the PHP Session ID, you can insert a “HTML Content” field in the form, with a piece of code below as its content:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
var v = document.cookie.match(/PHPSESSID=([^;]+)/);
if(v != null){fbuilderjQuery('[id*="fieldname1_"]').val(v[1]);}
});
</script>
Best regards.
Thread Starter
mads
(@madstudio)
Hei,
one more question … 🙂
Is it possible to set the Session ID in a field as a value (not only shown).
I need a condition in the database by the session ID.
Thanks
Hello,
The code I sent you in the previous ticket is not related directly with the plugin, it is basic javascript, and can found in any javascript tutorial or googling a little, furthermore, in the previous code the session id is assigned to a field in the form and will be submitted to the server side and stored in the pluging’s database.
Best regards.
Thread Starter
mads
(@madstudio)
Thanks.
I assigned your code in the form from a “HTML Content” to a “Calc Field” and it will by shown in the “Calc Field_sessionID”, but when i want a “dropdown ds” with a condition to the “Calc Field_sessionID” field, it doesnot work (but it is shown).
And when i take a 2nd “Calc Field” to assigned to “Calc Field_sessionID”-Fieldname the value is “0”.
what i do wrong?
Best regards.
Hello,
I’m sorry but without check your form I cannot identify what is wrong with your form. Could you send me the link to the webpage with the form inserted, and describe how are you using the session id, please?
Best regards.
Thread Starter
mads
(@madstudio)
Can i send you a “Request custom changes”? Maybe you can help me a little bit more…
Hello,
Yes of course, please send me your project’s description through my private website:
http://cff.dwbooster.com/customization
Best regards.