I want to create a link from the input the modified space is changed to a special character. and that link is functioned into a button

//example code :

export function button1_click(event, $w) {
let name : $w(“#input1”). value // replace spaces with " + "
let address : $w(“#input2”).value //replace spaces with " + "
let status : $w("input3:).value //replace spaces with " + "

let Link = ’ http://translate.google.com/#en/nl/ ’ + name + ’ /nextlink / ’ + address + /nextlink / + s tatus + ’ /nextlink /

wixLocation.to ( Link )

@ahmadnasriya help me please

//example code :

export function button1_click(event, $w) {
let name : $w(" #input1 “). value // replace spaces with " + "
let address : $w(” #input2 ").value //replace spaces with " + "
let status : $w("input3:).value //replace spaces with " + "

let Link = ’ http://translate.google.com/#en/nl/ ’ + name + ’ nextlink ’ + address + nextlink + s tatus + ’ nextlink

wixLocation.to ( Link )

https://russian-dima.wixsite.com/meinewebsite/create-my-link

export function button1_click(event) {xxx()}

function xxx (parameter) {
 let name = $w('#input1').value
 let address = $w('#input2').value
 let status = $w('#input3').value

 let Link =  'http://translate.google.com/#en/nl/' + name + 'nextlink' + address + status + 'nextlink' 

    console.log(Link)
    $w('#text1').text = Link
}

And additionaly look at Ahmads code-exaple. (just a quick example)!

Hi :raised_hand_with_fingers_splayed:

You can use the JS replace() function to replace the spaces with the plus sign, for example:

let name : $w("#input1"). value;
let modName = name.replace(' ', '+');

You can do the same for the rest as well.

Hope this helps~!
Ahmad