Hi FsTeam How do i prevent in displaying two alert messages scenario : I am having validation on text box which shows alert message on lost focus/ value change trigger at the same time i am having same validation on save button. if i leave text box and press save button both alert message get displayed on screen.

how to avoid this situation.

Regards Avinash

asked 18 Jan, 04:37

avinash's gravatar image

avinash
21311
accept rate: 0%


Hi Avinash,

You can check a session variable before showing alert and set this session variable just before (or after) you show the alert, then at the end of the procedure of send button clear this session variable.

Maybe you should write a procedure to show that alert, like:

procedure showAlert
  check session variable
  if variable is there then
    set session variable
    show alert
  end if    
end procedure

-- run this proc at the end of save button's action procedure
procedure clearAlert
  unset session variable
end procedure

Kind Regards
Serdar

link

answered 18 Jan, 09:15

formspider's gravatar image

formspider ♦♦
138210
accept rate: 22%

Hi thanks of reply , will try

Regards Avinash

(18 Jan, 23:37) avinash
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: 18 Jan, 04:37

Seen: 1,663 times

Last updated: 18 Jan, 23:37


© Copyright Gerger 2017