You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Open Modal Dialog not working on second call from an action chain.

edited Oct 10, 2019 12:58PM in Visual Builder 6 comments

Summary

Open Modal Dialog not working on second call from an action chain.

Content

Requirement is to display values returned from a rest service in a dialog containing table with the details. this action is implemented on value change event of an input text. it works well for the first time. wherein for the second time it opens the dialog for a sec and gets closed with a warning. Below is the code snippet from JS and JET.

JS: PageModule.prototype.openDialog=function(){
              document.querySelector('#modalDialog1').open();
              };
    PageModule.prototype.closeDialog = function(){
              document.querySelector('#modalDialog1').close();
              };

JET: 

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!