NetTalk Central

Author Topic: User feedback?  (Read 296 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 339
    • View Profile
    • Email
User feedback?
« 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


osquiabro

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • Email
Re: User feedback?
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: User feedback?
« Reply #2 on: March 15, 2024, 11:24:53 PM »
What Osa said.

JohanR

  • Sr. Member
  • ****
  • Posts: 339
    • View Profile
    • Email
Re: User feedback?
« Reply #3 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






Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: User feedback?
« Reply #4 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.