Announcement

Collapse
No announcement yet.

Confirmation Dialog in AfterValidate event

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Confirmation Dialog in AfterValidate event

    Hello:

    I've created a Form application wich gathers some data from the users. What I need is to display a confirmation dialog for the users to approve certain operations.

    This is a code example im using atm

    PHP Code:
    sc_confirm("Do you want to change status")
    {
         
    Function1();
    }

    sc_confirm("Do you want to notify supervisor")
    {
         
    Function2( {CurrentDate} );

    I've tried with the sc_confirm macro but is not working, i tried with and without the brackets, any ideas and help will be most appreciated.

    Regards

  • #2
    The sc_confirm() macro only works on an onClick event, so you can't use it the way you are trying to.
    Another option, you might have more luck with, would be the sc_ajax_message() macro, which is a bit more flexible.
    But it too has its limitations.
    In order to get the control you need or want, I would suggest a control application, probably in a modal window.
    There you put all your options on one spot maybe with checkboxes or radio buttuns.

    jsb

    Comment


    • #3
      Hello jsbianca:

      Thank you for your reply, actually i did it with a control application, as you suggested, not the fanciest of solutions but works.

      Thank you again.

      Regards

      Comment

      Working...
      X