Redirection -Alert

Angel27
Tera Contributor

Hi , 

As I want to show the alert in the form (currently not in use ) & need to mention the URL also in that alert message , so that user can click on that link while showing the alert .

But in alert we could not mention link .

Is there any possible way anyone could suggest .

Thank you !

6 REPLIES 6

Sure is! You can use the buttons:[] option for that:

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    var url = 'Click <a href = "https://www.google.com">here</a> to be redirected';
    spModal.open({
        message: url,
		title: 'URL redirect Modal',
		buttons: [
			{label:'OK', primary:true}
		]
    });

}

Saurav11
Kilo Patron
Kilo Patron

Hello,

On the Portal on which page do you want to show the alert?

Thanks.