sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

[Dynamic Form] Not handling mandatory Lookup fields well

Open 6gal6ler6 opened this issue 1 year ago • 3 comments

Category

[ ] Enhancement [X] Bug [ ] Question

Version

3.20.0

Expected / Desired Behavior / Question

When wanted to save a form that has mandatory Lookup fields, and if the fields are blank, or empty, the form should not save.

Observed Behavior

When saving a form that has mandatory Lookup fields, the form will save even those fields are empty or blank

Steps to Reproduce

Create any SPO List Add at least one Mandatory Lookup Field Render the dynamic form in "New" status Fill other fields and leave blank the mandatory lookup

Related Fixes:

#1760 & #1775

Screenshots:

When saving the Item:

SavingTheForm

When saved: image

6gal6ler6 avatar Dec 05 '24 00:12 6gal6ler6

Tagging @GuidoZam for assignment

michaelmaillot avatar Feb 07 '25 10:02 michaelmaillot

Hi @michaelmaillot maybe you've missed it but I've already opened a PR for this 😊

GuidoZam avatar Feb 18 '25 11:02 GuidoZam

Hi @GuidoZam,

Definitely saw you were on this one 😉

But I don't know why, I couldn't assign the issue to you, until you've commented it. Anyway, it's done!

michaelmaillot avatar Feb 18 '25 23:02 michaelmaillot