Reference selector validation issue

0
I am using reference selector that is fetching projects based on business units selected. Projects is required field Also, i have used XPath for selectable objects. Issue is: when the page loads, Project dropdown gives required error, even when i haven’t clicked save yet,   Attached are the screenshots.     This seem to be happening because of  selecting a path in selectable object tab.  How can this be corrected?
asked
3 answers
0

Does the validation is handled in Microflow ?

I would prefer to perform validations in the save microflow and show validation messages using validation feedback activity. 

answered
0

Hello Rakhi,

Can you check MF or NF, whatever you have used to show this Page below?

Are you checking 'Project' Field is required before Save button MF?

You should check this in Save button MF, where you can check via Decision if (Project!=empty) then you can call Validation Feedback activity to show 'This Field is Required' Message , if it fails.

Also make sure that You have Projects available in the database already and Project list shouldn't be empty.

Also it would be better if you can check 'Business Unit' First via one more Decision before checking 'Project' field in Save button MF.

Hope, this should help.

Thanks.

 

answered
0

Hi Rakhi,

 

Instead of XPath, use a Microflow to return selectable projects:

  • In the Microflow:

    • Check if Business Unit is selected

    • If not, return empty list (or all, depending on your UX decision)

  • Add logic in Project field widget to refresh when Business Unit is changed

Maybe this will work for you.

answered