NetTalk Central

Author Topic: Popups - Close  (Read 4477 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Popups - Close
« 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

 




Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Popups - Close
« Reply #1 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.

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Popups - Close
« Reply #2 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



Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Popups - Close
« Reply #3 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

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Popups - Close
« Reply #4 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

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Popups - Close
« Reply #5 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

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Popups - Close
« Reply #6 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