NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on March 14, 2024, 01:19:01 AM

Title: User feedback?
Post by: JohanR on March 14, 2024, 01:19:01 AM
Hi,

For some reason can't figure out how to get a user response when they click a button and act accordingly?

eg. similar to the message function.
'Are you sure you want cancel this action?'
if yes - delete record
if no - leave as is

If I look at the code , it seems as if the Form "Cancel confirmation" message that pops up is part of the form function
Is there a way I can include a custom action in this function?


thanks

Johan

Title: Re: User feedback?
Post by: osquiabro on March 14, 2024, 07:30:05 AM
for me work create a memory form with 2 buttons and fill session variable with a valid values and in GotFocusBack process according the values in session value
Title: Re: User feedback?
Post by: Bruce on March 15, 2024, 11:24:53 PM
What Osa said.
Title: Re: User feedback?
Post by: JohanR on March 16, 2024, 12:37:56 AM
Hi osquiabro/bruce

thanks for info,
just to understand,
on the memory form how are the 2 buttons setup?
and what action will close the memory form and end up in the gotfocusback in the 'calling' procedure

any examples that you possibly can point me to that has similar action?

thanks

Johan





Title: Re: User feedback?
Post by: Bruce on March 18, 2024, 06:18:58 PM
I think you're overthinking it. The Save and Cancel buttons on the form (perhaps with different text) will do you fine.