243
Views
5
Comments
How to use cookies to recall form details
Question

Can anyone assist:  I have an anonymous application form that a user fills in and saves.  When it is saved I include the osVisitor cookie as an attribute in the saved form. 

What I want to do is to allow the anonymous user to come back to the site and have his information shown on the form again to allow them to add more information.  In the preparation I have added an aggregate that is filtered by the retrieved cookie from the anonymous users browser and I try to match that against any records that have the same cookie...  But the issue I have is that it always comes up blank.  

Could someone explain what they would put in the preparation of such a form in order to have the anonymous user, who has already saved a part filled form, have his data displayed when they return to the site?

Hope that makes sense.

Regards,


Chris.

UserImage.jpg
G Andrew Duthie
 
MVP

Can you please share a simple OML file that replicates the issue? That would make it a lot easier to help troubleshoot. 

Also, can you share the version of the platform and Service Studio that you are currently using?

2019-11-08 16-23-42
César Mateus Conceição

Christopher White wrote:

Can anyone assist:  I have an anonymous application form that a user fills in and saves.  When it is saved I include the osVisitor cookie as an attribute in the saved form. 

What I want to do is to allow the anonymous user to come back to the site and have his information shown on the form again to allow them to add more information.  In the preparation I have added an aggregate that is filtered by the retrieved cookie from the anonymous users browser and I try to match that against any records that have the same cookie...  But the issue I have is that it always comes up blank.  

Could someone explain what they would put in the preparation of such a form in order to have the anonymous user, who has already saved a part filled form, have his data displayed when they return to the site?

Hope that makes sense.

Regards,


Chris.

Chris,

With osVisitor cookie you can temporarily persist in some table and when a user come back you can validate with your record if is the same user and load the according record.

A raw example to give some idea.




Reference: https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/Cookie_Usage_in_Web_Applications

UserImage.jpg
Sree Natarajan

Hi Chris,

Can you please share your OML.

 

2019-11-08 16-23-42
César Mateus Conceição
UserImage.jpg
Christopher White

Thank you for all your assistance.  I now have this working and can retrieve the relevant record.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.