OK @KBConcepts @MDS @Eldar I will try to explain everything:
In iOS the code to send SMS is:
sms:1234&body=message
In Android the code is:
sms:1234?body=message
For Both the code is:
sms:1234;?&body=message
So I start with the last code for both and had try it and it works perfectly in both systems.
- Simply send a plain text (TTTT) to a number (NNNN) from a button:
-
Create a button, and on the right bar in the Mode > Normal Mode > Interactions
-
Choose in Type:
Navigate to URL
-
In the URL write: sms:NNNN;?&body=TTTT
But in Blocs the “&” symbol is not recognized so you have to change it to “&
”
-
Create a costum sms with a field to input a personalized number (1234) and then a send button that already have the rest of the text (TTTT) predefined:
I can’t create it with buttons, so I use a different approach:
-
Create a Structure that you want, then add a Code Widget.
-
Create the field to write the costum number:
<input type="text" id="phone" required="" style="width: 100%;text-align:center;">
- Create the Button to call the personalized number and add it to the SMS code:
<button type="button" name="submityes" id="submityes" class="btn btn-primary btn-block" onclick="window.location='sms:' + $('#phone').val() + ';?&body=TTTT'">SEND SMS</button>
-
Finally create a personalized number and a personalized text in front of the predefined text (TTTT):
I can’t create it with buttons, so I use a different approach:
-
Create a Structure that you want, then add a Code Witdget.
-
Create the field to write the personalized number:
<input type="text" id="phone" required="" style="width: 100%;text-align:center;">
- Create the field to write the personalized text:
<input type="text" id="secondtext" required="" style="width: 100%;text-align:center;">
- Create the Button to call the personalized number and the personalized text and add it to the SMS code:
<button type="button" name="submityes" id="submityes" class="btn btn-primary btn-block" onclick="window.location='sms:' + $('#phone').val() + ';?&body=TTTT' + $('#secondtext').val()">SEND SMS</button>
In the buttons you can choose from ACTIVE buttons or DESACTIVE buttons, change colors, sizes, with, etc.
In the fields, you can choose from text, email, password, number, create max caracteres, change the size of the field, put a value, etc.
Hope that this explanation helps other users, it take me ages to find out a way to work in all devices, but with this way it will work with iOS, MAC Mojave, Android. About others OS’s systems don’t know, because I doesn’t have them.
This can be used to:
Share your URL in the site to others by SMS.
Create like a SMS templates.
The advantage from this way to others is that you don’t need to use outside servers, or operators to send the SMS and the personal information, doesn’t go to others, just creates the sms directly in the client equipment.
Let me know what you think, and I’m here to help.