Get your own customer support community
 

How to give a Long number a "Nickname" in Ubiquity

How can i make a command that replaces my nickname with the "real" name, like the email command. example:
instead of writing the telephone number "12345678" i write only "Stan"
i have tried to use the noun_type_language but failed.
any suggestions?

this is my command:

CmdUtils.CreateCommand({
name: "sms",
takes: {"nummer": noun_arb_text},
modifiers: {og: noun_arb_text},

preview: function( pblock, nummer, mods ) {
var msg = 'sms "${nummer}" og ${og}.';
var subs = {nummer: nummer.text, og: mods.og.text};

pblock.innerHTML = CmdUtils.renderTemplate( msg, subs );
},

execute: function( nummer, mods ) {
var msg = "sier " + mods.og.text + " til " + nummer.text;
var url = "https://www.gulesider.no/mypage/sendSms.c?&sender=48069930&recipients=" + nummer.text + "&text=" + mods.og.text + "&submit=send";
Utils.openUrlInBrowser( url );
displayMessage( msg );
}
});
 
indifferent I’m not too good at programming
Inappropriate?
1 person has this question

User_default_medium