Is it possible to have an input fields data posted to 2 collections when submitted? As I can see I can only connect to one collection for that input field.
I have a form that populates the "User" field with the logged in users email address, works great. I have 2 collections, "Maxlift" and "Maxlift reps". The user can use the drop downs and submit once they have selected their options. The drop down data goes to it's specified collection however I have a column in both collections called userEmail that I would like populated automatically. Can I use the PersonalMembersData at all?
I have gone through trial and error for days and just wondering if anyone has any suggestions or if this is even a possibility. Greatly appreciate any help.
Hello Frankie,
in fact i think that you have here 2-questions right?
1) How to populate with one click into 2-databases? (right?)
2) Can i use the PersonalMembersData for my needs? (right?)
So i will give you just for one question an answer, because every post should have its specific and unambiguously (clearly) content with just one topic (one problem).
You will need this few codelines, to realize your project.
$w('#dataset1').setFieldValue("userEmail","my new value") $w("#dataset1").save() $w('#dataset2').setFieldValue("userEmail","my new value") $w("#dataset2").save()
Just about 30min before, there was almost the same issue, look by your self here...
https://www.wix.com/corvid/forum/community-discussion/saving-data-to-dataset-with-a-code