When ever a user changes a particular field in a SharePoint List, Can I force the user to enter another field?

For example, I have got two fields, lets say A and B. When ever a user changes / update the field A can I force the user to update B as well ? (If user changes B no need to force the user to change A).

Looking for some inputs!! Many thanks ...

  • Are you able to use javascript/jQuery? – spevilgenius Nov 16 '11 at 12:31
  • I did not try with that, though thanks for that, will see how can I do it ... – Jithu Nov 16 '11 at 12:49

Not possible Out-of-box. You can use a javascript to clear the B field. If you need some logic or validation, you have to develop custom fields.

  • Most of the time JavaScript will work fine. However, it is worth noting that it is not bulletproof. The only bulletproof method is to write an Event Receiver. – Kit Menke Nov 16 '11 at 15:41
  • With the question, I understand that he wants user to update field B when field A is updated(by user). If so, event receiver cannot help as it will not change the UI at the time of field change. The only option is to develop custom field control – Amit Kumawat Nov 16 '11 at 16:01
  • Yes, good point about the UI. The event receiver could only enforce the data. – Kit Menke Nov 16 '11 at 22:26
  • thank you Amit and Kit for your help on this issue !! however I would like to add one more note that the list is of type Datasheet, here also cn I use JavaScript? – Jithu Nov 17 '11 at 4:16

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.