Prevent double entry for "Start Time" and "End Time" if already exists in the list.

*****For the same day.Also restrict from saving the item by providing a message to enter other time as this already exists. Preferably by using SPServices() and doing it on the PreSave() action. Thanks !

  • Can you please elaborate you question. With some good explanation which includes what you are trying to do and what you want to prevent.. This will give your question more attention. – Asad Refai Jul 27 '15 at 11:07
  • Fetch the data in array or some variable using REST or any code. and check whether it is duplicate or not. – Prasad Gavande Jul 27 '15 at 11:11
  • Asad my question is self explanatory ! – user2420476 Jul 27 '15 at 11:19
  • You can go to the column settings of the list and enforce unique values for both the items. That way they won't be saved to the list. – Akhoy Jul 27 '15 at 12:35

You can use event receiver to achive this. Before event receiver , in this you can write your business logic to check item is duplicate or not by Overriding the itemAdding event . Also can provide conditonal logic if duplicate do xyz.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.