I have a fully working form where 90% of the fields are all submitting as they should. However, I have noticed that any fields that have ‘inserted’ data via the following method don’t seem to bring anything up in their linked fields in the dataset.
Google maps dropdown filter method (on the same page) used to obtain input 1’s value
let text = $w("#input1").value; // data of city name
$w("#input2").value = text; // data of city name used as part of submission
// I'm using the same method for the longitude and latitude in order to link
// it and bring up a map later in the repeater
Input 2 is linked to my submit form and should submit along with the other input fields into it’s respected field on the dataset. But the submitted form isn’t reading that there is/was any information in the input2 field (but you can clearly see that it’s there before it’s submitted).
If i manually type, the input2 field works fine. But this would lead to errors as I use this information as part of a dynamic page.
Many thanks for the tip! Glad I wasn’t the only one!
I worked it a little differently in the end. I only really wanted the input fields for aesthetic purposes/to act as a required field so they couldn’t submit without the location details.
So I assigned the input2 field to an empty/dummy field on my dataset and set it to required. This way they have to click the input to trigger the Google Maps Places container dropdown (the GMP onClick container copies across to the dummy field (to give it a value and fulfill the ‘required’, and then sets the details to the field value).
My code ended up:
$w("#input2").value = text; // gives 'required' input a value to submit
$w("#dataset1").setFieldValue("fieldName", text); // data for dynamic page
Bit more of a long-winded work around. But, hey. If it works, it works!
Hi Yisrael, I’ve used this work around, and for a time it worked beautifully. Unfortunately, it is no longer functioning. It quite literally just stopped working. Have you encountered this as well?