Hi. Hoping someone can help me with this one. I’ve read up on reference fields but not sure if this can work without using code.
I have 2 databases and want a field value in one of them to be determined by comparing the field values in both databases, as follows:
If Field 1 in Database A is equal to Field 1 in Database B AND Field 2 in Database A is equal to Field 2 in Database B,
Then Field 3 in Database B is equal to “3”.
How would I go about writing code for this? Thanks
hi Or. Thanks for the above advice. I’ve been playing around with it but can’t get it to work. Do you have to do a separate query for each field search or can you search 2 fields with the 1 query? I was thinking of using a button on one of the pages which on clicking would calculate the new field values but then saw a previous post which advised using the afterInsert hook instead, so now I’m all confused on how to go about it.
Is there any pseudo code examples you could share to help? I can’t find any that fit what I’m trying to do.
Thanks.
I have the same question, too. I want to compare two values in a dataset, if it’s true, a successful light box will appear, If not, this will be a failure light box . So how can I do this with wix code? (this’s a contest, the students submit their homework, and receive a score after each question.)