flag true/false depending on two field value

madalinus1
Tera Contributor

Hello, I dont' kow if I write in correct location but I will try:

I need some help for this: 

When the user field changes, we will check whether the customer has visited the store at least once during the previous week and made a purchase; in this case, we will set the flag to true.

I created the form and the field names are the following:

user field: (user)
entry date ( entry_date )
flag: (already_customer)

 

madalinus1_0-1704990074680.png

 

if the user it's alredy present with a date oldest than 7 days, the field ( already_customer ) will change to true.

How I can do it with a onChange client script? 

 

0 REPLIES 0