If you want to access a field created via global product options within a formula you can use the function GetGlobalField
![](https://productbuilder.rednao.com/wp-content/uploads/sites/4/2024/06/get-global-field.png)
This function will ask you for the global product ID and the field ID you want to use.
For example, below I have a global product option that adds the text box ‘Full Name’ to my products
![](https://productbuilder.rednao.com/wp-content/uploads/sites/4/2024/06/Global-product-options.png)
I will need two things to use this field in a formula.
1.- The global product option id. I can find this information in the global product option URL
![](https://productbuilder.rednao.com/wp-content/uploads/sites/4/2024/06/global-product-option-id.png)
![](https://productbuilder.rednao.com/wp-content/uploads/sites/4/2024/06/product-product-option-designer.png)
In this example, the global product option id is 1 and the field that I want to use also has the id 1 so if I want to access this field in a formula somewhere else I just need to add this code:
![](https://productbuilder.rednao.com/wp-content/uploads/sites/4/2024/06/formula.png)
19
JUN
2024
JUN
2024
About the Author:
Im programmer working for an international company. I have programmed since i was 12 and i have done it professionally for 6 years. Programming for a company is fun and i have learned a lot of things but i have always been interested in running my own business so i decided to give it a shot doing what i do best, programming stuffs.