I want to access data from a field in the doctype (Address) once the page is loaded, perhaps with a button calling the function in the custom script. The function should just fetch the data from the current form, assign it to another javascript variable, do some calculations, and then the variable with the result needs to be assigned to an HTML element by ID.
Simple, but I can’t seem to access the cusotm field names.