Page close javascript like Adobe Pro

Avatar

Avatar

selvaka

Avatar

selvaka

selvaka

12-09-2017

Hi,

I just want to show a popup when the user exit from a particular page in a Dynamic form in LC?

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar

mouslander

Avatar

mouslander

mouslander

26-09-2017

yes that makes sense. When the user gets to the first field on section E you would need to trigger a validation on that fields On Enter event to set up a message if the fields are empty. There are several ways to do this depending on how complex section D is. If there are only a couple fields you could do something simple like:

If(field1.rawValue == null || field2.rawValue = null || field3.rawValue = nul){

pop up a message box telling user they need to complete the fields

setfocus back to the section

}

Avatar

Avatar

selvaka

Avatar

selvaka

selvaka

26-09-2017

Thank you for your response. A form has few sections, say for example Section A to Section K. Each section in a different page. Section D is more important than other sections. If the user does not provide answers any one of the questions in Section D and he moves on to the next section promptly he should get a popup alert like, "This is mandatory to fill all questions in Section D".

Hope it is clear and you will reply soon. Thank you.

Avatar

Avatar

mouslander

Avatar

mouslander

mouslander

22-09-2017

I am not sure what you mean when the user exits a page? can you explain this a bit better

Avatar

Avatar

selvaka

Avatar

selvaka

selvaka

14-09-2017

Can anyone help the question above?