how to restrict a CMSDesk Save button to be clicked twice ??

Joy Basak asked on July 19, 2017 15:47

While creating a new contact how to restrict the Save button to be click twice ?

Recent Answers


Brenden Kehren answered on July 19, 2017 15:58

Out of the box there is nothing. You could inject some JS to prevent this if needed. Also, if there are duplicates, in v10 they will automatically be cleaned up/merged. In v9 or earlier, you will have to tell the system how you want to automatically merge contacts or manually merge them.

0 votesVote for this answer Mark as a Correct answer

Joy Basak answered on July 20, 2017 08:24

@Brendon thanks for the reply. Can you suggest me how to inject JS to Contact Management Edit Page? I'm not able to get the handle of save button in that page , as the button is within an iframe.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 21, 2017 18:13

Personally, I cannot say I've ever had to do it so I'm not sure I'd be a good person to give you that information. But if I had to guess, there might be 3 places you could make this modification:

  • In the module class where the UI pieces are defined. (Modules>Contact Management>User Interface)
  • In the custom code file for Contact management
  • Last and certainly a last resort, In the main CMS javascript file (not recommended)
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.