NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on July 26, 2024, 02:14:39 AM

Title: Popups - Close
Post by: JohanR on July 26, 2024, 02:14:39 AM
Hi,

I have a memory form popup , coming from a browse.

Besides the Cross top right hand corner,
Is there a button I can place on the popup that will close/hide it?
And can I have embed code in that button to set some session variables?

This all seems familiar, might have asked this in an online user group, but cannot recall!


thanks

Johan

 



Title: Re: Popups - Close
Post by: Vinnie on July 26, 2024, 05:57:23 AM
You can add a 'SAVE' button on the form and change the text to 'Close' or 'something' else and add code Post Update.
Memory forms are change mode by default.
Title: Re: Popups - Close
Post by: JohanR on July 27, 2024, 01:33:47 AM
Hi Vinnie

Thanks for that, does not seem to work on my side.
will try to understand why or try one of the examples

thanks

Johan


Title: Re: Popups - Close
Post by: Vinnie on July 27, 2024, 04:29:16 AM
Maybe I have given you the wrong embed point but you should be able the Save the form as a Close.

You can hide the X  close on the popup
Title: Re: Popups - Close
Post by: JohanR on July 27, 2024, 05:56:25 AM
Hi Vinnie

Thanks, but for now have just displayed a message, the user must hit the X to exit
I can sort out the cleanup code somewhere else.

When I have time will pursue at a later stage, as it will be better to give the user a dedicated CLOSE button with a message.

thanks

Johan
Title: Re: Popups - Close
Post by: osquiabro on July 28, 2024, 04:01:55 AM
yo can create any button and then on click tab put 'ntd.close();'  in GotFocusBack you can set variables or when open a form
Title: Re: Popups - Close
Post by: JohanR on July 29, 2024, 09:51:03 PM
Hi,

That is working quite nicely,
I have never used javascript functionality before, so took a few mins to figure out where.

see attached pic for correct place

Is there a doc somewhere with similar useful javascript items?

thanks!

Johan