How to use third party notification messages

  • 30 August 2019
  • 3 replies
  • 6 views

Badge +1

Hi All,

 

Is there any way I can use JQuery library Alertify in my K2 five forms. I tried to create data label and refer with css and JavaScript files but it seems not working. Could you please help me how I can achieve it. Really appriciated for your help.

 

Alertify Liberary URL:

https://alertifyjs.com/guide.html

 

I have created three data label and assign it with script expression on Form Initializing.

 

 

 

 

 

 

 


15397iF91341ADDB10363B.jpg
14689i83F78ADCB847CB10.jpg
11537i2D9C21F2E2F41F71.jpg
10989i5FDBB1C6E0214CDE.jpg


3 replies

Hi  @samarm;


 


Could you please take a look at twilio service broker (https://community.k2.com/t5/General-K2-Utilities/SMS-Texting-Service-Broker-with-Twilio-K2-Five-and-4-7/ba-p/108735), also for more infor div into(https://www.twilio.com).


 


Regards;


Widson.

Userlevel 2

Hello  @samarm,


 


I am not sure if you have tried it this way using javascript but it seems to have worked for someone else:


1) Add a Data Label to the Form


2) Change it to Visible - No, Literal - Yes


3) Add the following code to the Data Label Text: 


 


 


<script> window.onbeforeunload = function(e) {return 'Are you sure? You will lose your data.';};</script>
 

 


referencing community article:  https://community.k2.com/t5/K2-Five/Is-it-possible-to-display-a-message-on-form-redirection/td-p/103872


 


Regards,


BesM


 


K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.


 


 

Userlevel 2

 


One more article for you with explained tutorials to achieve this using jQuery:


https://vijaydk2guy.com/2017/06/02/basic-jqueryjavascript-samples-in-smart-forms/


 


Regards,


BesM


 

Reply