Expand my Community achievements bar.

Page close javascript like Adobe Pro

Avatar

Level 2

Hi,

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

4 Replies

Avatar

Level 2

Can anyone help the question above?

Avatar

Level 7

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

Avatar

Level 2

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

Level 7

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

}