PnP-Tools icon indicating copy to clipboard operation
PnP-Tools copied to clipboard

Unable to search people in calendar list with Reponsive-UI

Open FrapsyOnGithub opened this issue 5 years ago • 4 comments

Hi. I have created a calendar application and add a people picker multiselect. In newform and editform I can directly validate the name of a user. However, when I click on the browse icon, the search returns no results.

Am i the only one having this problem ?

FrapsyOnGithub avatar Jan 29 '20 16:01 FrapsyOnGithub

@FrapsyOnGithub which solution is the question target to?

wobba avatar Jan 30 '20 11:01 wobba

hi, it's on the UI Responsive solution

FrapsyOnGithub avatar Jan 30 '20 13:01 FrapsyOnGithub

I confirm this error. We need to have something like this:

pp-modrrn-search-works-2021-04-19_162320

But the window is empty instead:

pp-search-not-working-2021-04-19_154714

Any ideas, can we partially disable SP-Responsive-UI functionality on calendar people pickers?..

Best regards, Gennady

Gennady-G avatar Apr 19 '21 13:04 Gennady-G

Ok. As a workaround I added this stamp in init function (not perfect, maybe better do something like window.location.href.toLowerCase().indexOf("/newform.aspx"):

        init: function () {
            if (!initState) {

                /* gg added: return if New Form or Edit Form */
                if (window.location.href.indexOf('/NewForm.aspx') < 0 || window.location.href.indexOf('/EditForm.aspx') < 0 ) {
                    console.log('New/Edit Form; PnP Responsive skipped');
                    return;
                }

                var currentScriptUrl;

Now People Picker works for me

Best regards, Gennady

Gennady-G avatar Apr 19 '21 14:04 Gennady-G