SBM JavaScript Get Field Value from another table

Hi!

I have a JavaScript that linked to Form1 and as you know the form has created based on Table1, so there is a JavaScript file linked to Form1 to handle some integration with a 3rd party database, now I need to get a field value from Table2 and use it in the JavaScript files that linked to Form1. Since the fields scope in Fom1 is coming from Table 1 , I have no clue if we can get a value from Table2 in this scenario.

Basically , I have a table called API settings , so in other forms Javascript files I wanna call the API Url , Name , Key ,etc. dynamically and I don't wanna harcode it for different environments deployment purposes.

Thanks!