@Londya_Adam posted this question in the community:
Coda doesn’t have a “Phone Number” column type, but you can create a click-to-call number by putting “tel:” before the phone number as the hyperlink for the phone number. This way, when you tap the number in the mobile app, it will launch your phone’s default phone dialer. See the formula in the Click-to-call column:
Hey team, any plan to implement it natively? it’s a bit annoying having an additional column for that and I think it is extremely useful as a “column type”
Hi @Francesco_Pistillo, I’ll definitely add this to our backlog! Through formulas and buttons, you can get a pretty neat list of phone numbers to dial. We published a template with this specific use case here!
@Josh_Szwarga Yes! I just updated the sample doc in my original post. The formula in the “Click-to-call” column uses the FormulaMap() and Split() functions to create separate links for each number listed in the “Phone number” column.
FYI instead of having a column of numbers you can click to call, you can also add in a button to make the doc feel more like an app (as shown in the template).
hi @Al_Chen_Coda, the FormulaMap works fine if one works with the hyperlink. Is there a way we can use the button and select the number of our choice? I guess @Josh_Szwarga also looked for a solution like this, I guess this is a out of reach for the moment, right?
hi @benblee, the sms logic works fine for me, but I do not see how you can prefill the SMS message with the body text as you propose it. I used the EncodeForUrl() to trework the text. Can you provide a bit more details on how you see this working? thx, christiaan
You couldn’t do this with a button directly, but you could add another column with a select list that let’s you pick the number you want to call. Then when you click the button to call, it would call the number you selected in the select list.
thanks @Al_Chen_Coda, so in two steps and with an IF statement or a SwitchIf. In case there is only one number, this number should automatically be preselected.
You also don’t need to encode URL if you’re including it manually. If you decide to add it, you can do that at the hyperlink part of the formula and you can also remove all the %20 manually added parts.
Fellas, I did not expect what just happened. One of the users complained that the phone numbers they receive with tel: using the hyperlink formula shows as http://tel: in the email which obviously won’t work. Any ideas?