Announcement

Collapse
No announcement yet.

onApplicationInit Display Modal Popup Text Box

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

  • onApplicationInit Display Modal Popup Text Box

    I need to display a modal popup box that has a text field. When the user presses OK, I need to compare that text field to a global variable to determine if the user entered the correct data. If the text field matches the global variable, then I want to display the form. If it doesn't I want to display an error and return them to the previous web page.

    I know I'm mixed PHP and Javascript but there has to be a way to do this. Any thoughts?

  • #2
    You can do it. In you form create a field hidden then in onload asign the variable global to new field. And then Ok button compare your two fields.

    Comment


    • #3
      If you button is type PHP, you can compare it. if ({myfield} == '[myglobalvar]') {...}

      Comment

      Working...
      X