alert on onchange Multiline text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 10:11 PM
HI,
i just want to create a alert on when ever the multiline text changes (onchange multiline text variable). The below code is keep on looping again. i added "return" to stop the loop but its not working. could some one help me to stop the loop?
script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 10:25 PM
Hi @snow57 ,
Do you need to compare the text as well whenever it changes & then display the alert or its just whenever the value is entered in the field whether its same or diff it should display an alert?
if its the later case no need of newValue oldValue check just put an alert.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if(newValue != oldValue){
alert("test the multile text");
}
}
Also if above thing not work can u share some snip please.
Thanks,
Danish