Create a form to send SMS with link to app store

Hey Everyone,

Wondering if this is possible in Webflow. I was provided some javascript and documentation to hopefully achieve something like this: https://hurdlr.com/

By clicking the “GET THE APP” button it activates a phone # field to send the app link to the users phone via SMS.

JS: (I have the key being requested)
(function(b,r,a,n,c,h,,s,d,k){if(!b[n]||!b[n].q){for(;s<.length;)c(h,[s++]);d=r.createElement(a);d.async=1;d.src=“https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,“script”,“branch”,function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode”.split(" "), 0);
branch.init(‘INSERT-BRANCH-KEY’);

function sendSMS(number) {
var linkData = {
tags: ,
channel: “Website”,
data: {
“utm_source”: “hurdlr”,
“utm_medium”: “site”,
“utm_campaign”: “download”,
“utm_content”: “hurdlr”,
}
};
var options = {};
var callback = function(err, result) {
if (err) {
// TODO handle error better
alert(“Sorry, something went wrong.”);
}
else {
// TODO handle success better
alert(“SMS sent!”);
}
};
branch.sendSMS(number, linkData, options, callback);
}

Documentation:

Your request is quite broad, and may not be easily answerable/solvable via the forums. Would you like to move your post to the Freelance category instead?

Alternatively, you can also contact specialists in our Experts directory to custom code a solution for you.