We are using the field mapping application QField with QGIS 2.18 for on-site data collection.

I've looked through the documentation and am still unsure, so am bring this question here: Is it possible to use python scripts using the python init function specification in the layer field properties?

I currently use a script to automatically assign object modification date and time. I am looking use this, because as far as I can tell, the now() function only works when the object is created. Updating existing points does not update the now() variable.

Unfortunately, there is currently no Python support for QField.

However, there is a flag to "apply default value on update", as is described in an answer to another question .

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.