I want to have a footprint that helps keep track of the values that I want to keep for users. If the user has not provided his name, I want to display a form for entering the name that will be used for search.
I want to check if the name is in the trail. If the name is in the trail, then display the data for this user. If the name is not on the trail, I want to display the form so that they can enter their name.
I am looking for some help in how I accomplished this. It was suggested to encode the structure as json and push it to the trail, and then look for it. Some direction on how this would be done would be helpful. Do I use the following:
if seen ent:user_data with <regexp> then {
<get and show data>
} else {
<show form to user>
}
source
share