Friends , I could not set fetch value based on checkbox from other doc types , else its working fine for other field types. Please help by pointing the solution.
Hi,
May we know what has been tried and a few more details about the doctypes and fields?
Thanks, I have a field checkbox to confirm that patient has knee suffering and similar fields for other joints. While creating a record for OPD registration, I want to copy values as default prefilled.
Does the checkbox field have the same name as in the doctype that you wish to copy it from? Something like this: https://docs.erpnext.com/docs/user/manual/en/customize-erpnext/articles/fetching-data-from-a-document
Fetch value worked for check field only by a custom script. However, it is not working to set value in doctype say patient.knee
cur_frm.add_fetch(‘patient’, ‘knee’, ‘knee’);