I am working on a sharepoint online custom list, and the list contain these 2 main fields:-
- Status. drop-down with options; new,open,closed
- Publish Date.
now i want to prevent users from creating/editing an item and change its "Status" to "Closed" unless they specify a value for the "Publish Date".
now i want to use the modern experience, as if in classic mode i can simply add a script editor web part and do the validation using javascript. but what are the options i have to do this validation in modern experience ? and can i benefit from list or field validation to do such a validation (as list/field validation will work on modern UI)..