web mailing list archives

web@odoo-community.org

Avatar

Read Field Value Using JavaScript

by
Open Source Integrators, Steven Campbell
- 18/08/2020 18:48:28
Hi,

My name is Steve Campbell and I am a contributing member of OCA, I am currently working on a JavaScript issue and I am having trouble with something I assume is pretty simple. I have a widget in this repo https://github.com/OCA/geospatial/tree/12.0/web_view_google_map that uses data from Google and autofills multiple fields on a Contact record. I would like this widget to only autofill fields that are not populated already. I know how to set values on the fields, but I don't know how to check if the field has been set.

Any advice would be greatly appreciated,

Thanks,

Steve Campbell