Hiding fd-form initially and showing on spRendered bug

Hi there,

Recently there has been a bug in the plumsail forms for SPO. When Add the following css in my form

.fd-form{
    display:none;
}

And do the following on my js:

fd.spRendered(async  function () {
    await someFunction();
    anotherFunction();
    $('.fd-form').show();
})

When the list and library control has been added to the form, it also shows me the popup in the form to create a folder. Total popups are as many list-library controls as you have in the form. This is a recent change and affects our forms quite a lot. Could you please look into it?

Thanks in advance!

Dear @asmita_adh,
While this is unfortunate, there's always a chance that custom code may break on update, and we cannot keep every possible setup in mind. Does the popup open without the custom code?

If not, then you can adjust the code to not trigger the popup, for example, you can try the following:

.fd-form-content {
    display:none;
}

And the following JS:

fd.spRendered(async function () {
    await someFunction();
    anotherFunction();
    $('.fd-form-content').show();
})
1 Like

Thanks @Nikita_Kurguzov, this does indeed do the trick :slight_smile:

Another question:
Is there a way to hide the folderup in the list and library control in the baseroot folder? I do not want users to make subfolders other than the root folder that is defined dynamically per item.

Dear @asmita_adh,
That should be default behavior if you set both the rootFolder and baseRootFolder as shown in the example here - Organize related files in folders on a SharePoint form — Plumsail SharePoint Forms Documentation

You'll see on the screenshots there are no folder up buttons as it's already inside the new root.

1 Like