Closing parent form from child

Hello @ixxxl,

fd.control('SPDataTable2').widget.dataItems() - returns the items for the current page only.

You have two options here:

  1. Change the count of items per page in the list view settings;
  2. Use PnPjs to get the items from the specific folder:
    https://github.com/pnp/pnpjs/issues/890
1 Like

@Margo
Good day
when i use window.fd=fd;
another users can edit from console my fields.(if i disabled them, they can enable them etc.) Is it a way to prevent this?

Hello @ixxxl,

A user can modify anything on the form from the console, no matter if fd is defined globally or not.

The question is why would they need to modify the form?

A user can send requests from the console to create/update list items from the console, as long as he has permission.

@Margo

Because they want to destroy forms and to tell that developers maked something wrong:)
In russian language: Рабы издавна ломали свои инструменты,чтобы не работать:)) It's actual nowadays. Is it a way to have some log about changing in console? to find which user make it?
thank you for replay

@ixxxl,

User can't change the form for all users from the console, only for his current session. If someone is complaining and you can't reproduce the case - that the user you are looking for.

If you want to track changes of the form, you can enable versioning for the SitePages library to track who and when changed the form.

1 Like

@Margo

Thank you i have versioning enabled.

Blockquote
User can't change the form for all users from the console, only for his current session

I understand that, but in case when piece of form is blocked from with information from previos users, current can open this fields , change some info and save it. after that telling to support that he didn't do anything, and it's a bag in form. that's why a asked you about this. it seems that without window.fd=fd - user can't modify fields - console errors about fd undifinied