Is there a way to know if the opened dialog is an edit or an add dialog?

QuestionsIs there a way to know if the opened dialog is an edit or an add dialog?
Massimo Gagliardi asked 5 years ago

Is there a way, via jQuery when you are into an opened dialog, to know if the dialog is an edit or an add dialog, more professional than test the title dialog?
Thank in advance.
Massimo Gagliardi

1 Answers
Abu Ghufran answered 5 years ago

You can check the title of dialog using jquery.

http://prntscr.com/bjtg7p

e.g. to check if edit dialog
if (jQuery('.ui-jqdialog-title').html() == "Edit Record") { …. }

Your Answer

16 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?