This is probably an easy one, but keep in mind I don’t know programming for any for m of internet (JS, html, etc etc), thats why I am using bubble in the first place
Anyway, so my plugin makes an API call. The data I get back has no decimal places. So I want to divide the number I get by 100,000,000
I expect I have to do some sort of action or something? I assume this action work initiate as soon as data is retrieved from the API?
I saw that…not really. Maybe I just dont know how to use math.js with bubble. I thought I could put in parentheses in the expression field. But when I try that , bubble then no longer gives me drop down lists of items to add to the expression. Its just as limited as not having math.js
Example. here is a math.js expression. I expect that it doesnt do the stupid left to right math anymore…but it does
I dont know what codepen is. I have tried math.js (shown above), toolbox and instant calculator. The issue isnt me failing to find something that claims to solve this, the issue is that documentation on using any API in bubble fails tremendously when it comes to documentation on exactly HOW to use them. Again, they all claim to allow me to use parentheses, which would solve these problems. But when I go to use them, I can only put in the first open parens, and then bubble always fails to give me dynamic data choices afterwards .
you could set a state to hold what you would put into a parenthesis. then just do the math on the states.
this will also work if you need to use toolbox
claims to solve this
Be patient and give yourself some credit. For someone who doesn’t know coding, you’ve come a long way to get to this problem.
Just because you can use parentheses, doesn’t mean you’re doing it right in Bubble. No offense intended. Sometimes the subtitles of js can be “lost in translation”.
Which why getting things to work in codepen.io makes life easier in the long run.
Here’s that annoying part… I have to put all the products into states…can do. But the products are right there…in those text fields on right. I have already calculated them and they are sitting there. Is there no way to pull the number out of a textfield?
I guess I will make states for each of the products and then the text fields will use those states and just prints them, then the product sum, will just sum the states.
Is it normal to have dozens of states? Thats the path I am on. Is there a page where I can just see all the states and what they belong to?
thanks for that. I forget. I’m a pretty good programmer for 8-bitters, and in C and the kind of programming we used to do from the 70’s to the 90’s. This “new” shit is totally beyond me.