I am working on a custom list inside a classic team site. and inside the edit form i added this jQuery code to disable 2 fields (so those fields will only be set when creating the item):-
$("input[id^='ESTCompletion']").attr('disabled', 'disabled'); $("input[id^='Completion']").attr('disabled', 'disabled');
so can i write a validation rule inside the list validation to make sure that those 2 date fields will not be modified when editing the item?
In the on-premises farm, i use to write an item-updating event receiver to do such checks, but in the online world implementing those will require lot of efforts and hosting cost.. so i was thinking if i can do these checks inside the list validation?