top of page

Forum Posts

Alon Spiegel
Mar 02, 2018
In Coding with Velo
I use the following way to set values of form fields programmatically. $w.('#fieldName').value = 'some data' I have several UserInput fields. They are all connected to a database collection. If I enter data manually into all of the fields, they all get stored in the database. If I use code (like stated above) to enter data to some fields - those fields will not get stored while other fields (with manually entered data) will get stored. I used console.log() to see if values were set the same way for the manually entered fields and the programmatically entered fields - it looks the same. I tried manually appending a character to the programmatically entered fields and then the entire data (programmatically entered and manually entered) was stored. I am guessing that there is some kind of an attribute on each field that indicates whether it was changed or not, and setting the values using code does not trigger the attribute change to reflect the true state of the field. I hope I am missing something - like a click on some attribute or something. Please help
1
12
588
Alon Spiegel
Feb 19, 2018
In Coding with Velo
Hi, I read your article on the topic: https://support.wix.com/en/article/how-to-send-an-email-on-form-submission I need to send it using gmail instead of sendGrid. Unfortunately, I didn't find any documentation specific to gmail. Did I miss it? Can you point me to it? Or write how it is done? BTW, I saw similar questions but no real answer.
2
5
3k
Alon Spiegel
Feb 18, 2018
In Coding with Velo
I would like to add text to a field inside a contact form. I didn't see any built-in option to do that so I enabled code. I didn't find any way to do it with code also. The only way I found is to remove the contact form and to draw user-input fields that will look like a form and then program the entire "send" function. So my question is how to manipulate fields' text that are part of a contact form. I am lookinf for somthing like that: $w('#contactForm1').getField('field1').value = 'something';
0
3
449

Alon Spiegel

More actions
bottom of page