Is there a way to change the libary view using a java script?

Hello,

I hope you can help me.
Is there a way to change the view using a java script?
That is, under certain conditions, "Only me" is no longer selected in the view, but "All Documents"?
image

Best regards
Corinna

Hello @Sternchen,

List or Library control doesn't support programmatic change of the list view.

Is there another way to change the view under certain conditions?

@Sternchen,

You can multiple List or Library controls and show/hide them with JavaScript depending on certain conditions.

This sounds like a good idea.
seems like it´s working. thanks for the idea.