Now I just need to figure out how to call the API from within that CSS handler script. I'm used to using libraries like Axios for this, is a way I could call an external API with Espo itself somehow?
Check this code sample https://forum.espocrm.com/forum/deve...7719#post67719 Important, though you probably know it, is to structure the code so the application waits for the Ajax call to be completed before continuing.
This section of the documentation talks about ways to accomplish this. https://docs.espocrm.com/development...fore-rendering

but the plug-in will work as long as it has values to compare, perhaps you could create a non-storable field ("bestPrice" for example) and save there the number to be compared with "pricePerTon" to determine the CSS characteristics of the field.
Leave a comment: