Hi!
I have a form (v4) in which uses the DB record loader action to prefill certain fields. This form is to be used as a Joomla registration form and I need to pass on certain values from the connected table as is, while a new account is being created.
I know that I can load these into hidden fields and then they will fill in the respective Community Builder fields, but these field values can be tampered with by anyone with a fair bit of Web Developer knowledge using a tool like Web Inspector. Since these are sensitive in nature, is there a way these values can be passed on and stored without using these methods?
I have searched around in the forums and couldn't find an answer. Kindly advise.
Hi ashwinuae,
Look the sensitive values up in the On Submit event instead of the On Load event.
Bob
Hi ashwinuae,
Where does $field1 come from?
Bob
Hi,
I'm basically using a multi-form setup. Form1 receives an ID which queries a certain DB table and if a record is found, it loads the relevant fields into Form2 which is a registration form.
Upon submitting Form2, I want certain fields from the first table to be saved as well, without passing them through hidden fields.
Hi ashwinuae,
I usually prefer to save the results to a table at the end of each step. Then you can re-load any that are needed later.
Otherwise you can use the 'Data to Session' and 'Session to Data' actions to pass data from one event to another.
Bob
Hi Bob,
Yep, I used 'Data to Session' and 'Session to Data' to pass the data between the two forms which worked perfectly. Now I'm trying to get the data to store into a table and display in {curly} upon submitting the last form. The actual fields in the form store fine but I cannot figure out how to store data that is there in the array, without passing them through hidden fields.
Sorry for the back and forth, I'm a n00b and still trying to get my way around the Chronoform powerhouse! 🙂
Hi ashwinuae,
If you keep the data in the Session then add a 'Data to Session' action in the last On Submit event to make the stored data available.
Bob
Hi!
I tried the 'Data to Session' action in the last form. But it still doesn't replace the {curly} in the Thanks Message or save into the database after that.😟
But the moment I have a hidden field in the form with the same field name, everything works perfectly... 😶
Hi ashwinuae,
Sorry, my mistake, I should have written 'Session to Data'.
Bob
Many thanks! Got that working! That's a beer on me! 😀
But got another issue as a result of this though. Now in the final form submission, this session data overwrites the fields that have been edited. I tried to unset the data array but that just empties it completely.
Hi!
You can ignore the previous message. Solved that one!😀
Got it to work by using one more 'Data to session' event (with Merge Data set to Yes) just before the last 'Session to Data' event in onSubmit. This way the fields that have been edited are merged with the existing form data from the previous form. Hope this helps someone!🙂
Cheers & Thanks a ton once again for you constant support!
Ashwin
Hi Ashwin,
Well done, that's a neat solution !!
Bob