Custom Script : Fetch Values from Master
Custom Script for Fetching Values From Master
To pull a value of a link on selection, use the add_fetch method.
![](https://storage.crisp.chat/users/helpdesk/website/6f1c2c7b8034d000/image_cmc0et.png)
Example
Let' say you have created a Custom Field VAT ID (vat_id) in Customer and Sales Invoice and want to make sure that this value gets updated every time you select a Customer in a Sales Invoice.
To configure this, in the Sales Invoice Custom Script, you can add this line:
![](https://storage.crisp.chat/users/helpdesk/website/6f1c2c7b8034d000/image_1euvsmf.png)
Updated on: 31/03/2023
Thank you!