I created a label named Price : 30 Rs. And, I want to to multiply the number 30 with the quantity I get from user in ‘text box’. So, how can we extract the variable 30 from the label to do further calculation in block editor?
Don't rely on label values for calculations. Use a variable to store your price and display this in your label. Then use the maths blocks to carry out your calculation using the variable.
will the app inventor accept the text box data as number if users enter number? for further background calculation like multiplication and addition? Because, im facing some error.
Thankyou for your help, your guidance helped me to go one step ahead and find another issue. ie, I got error even after doing this change,
but fortunately the solution was in the video. In the video he is saying to put all the texts within the =>, so i added => in a new text block and put it after the block contains Thankyou. Now, it is opening the whatsapp but with another issue.
The new issue is that ‘the app has to open owner whatsapp number automatically with the message to send to the owner number. But instead of opening the exact whatsapp number, it is just opening the WhatsApp and showing all contact numbers to send to anyone i choose. It is not directly opening the shop owner’s whatsapp number. How can I solve this error?
Is your phone number in international format, e,g, begins with 44 for UK, 91 for India ?
Have you url-encoded your text (there is a block in the web component for that)?
I did not see anywhere in the video where he told you to use <= or => to surround the text ?
Can you send a whatsapp message to the whatsapp number of the device running the app ? ( I presume you are testing on your own phone, which will have the same phone number as the number you are sending to ?) - from what I see in the video it appears that you can, but it might be useful to use a different number not on your phone.
Simplify what you are trying to send, for testing purposes
Is it possible to calculate multiple product purchase data? Now, the app can calculate single product purchase, is it possible to make the app to calculate the values if user wants to purchase multiple products?