Saving Data for logged in user
-
I don’t mind saving to a cookie, as long as data isn’t lost when page refreshes. I’m not sure how to do this though? User’s will be logged in.
I did read your help, but still a bit lost. There will be a lot of fields on my page (about 200). Will this be practical and will I be able to do using CFF?
Could you explain the below in more details if it’s a solution? Sorry.
[CP_CALCULATED_FIELDS_VAR name=”variable_name” from=”cookie”]In the previous shortcode the variable_name text should be replaced by the name of the session variable. For example: myVar
[CP_CALCULATED_FIELDS_VAR name=”myVar” from=”cookie”]
At this point has been created a javascript variable, with the same name of the cookie variable, myVar, with a global scope.
Now, you simply should use the new variable directly in the equation, for example: fieldname1*myVar, or any other equation.
https://www.ads-software.com/plugins/calculated-fields-form/
- The topic ‘Saving Data for logged in user’ is closed to new replies.