We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36225
    • 20 Posts
    Hi all,

    I have the following situation:
    A resource in the manager, customized with form customization so that we only see 2 custom tabs with lots of template variables, is edited and saved by a user belonging to group G.
    After checking a given tv that is a kind of form validation checkbox, the user saves its form, and with a plugin and ondocformsave event, I move its group G to another form customization set where users should see only one of the 2 previous tabs.
    Everything is fine except that the manager does not refresh the form with the new fc set tab visibility.
    If the user logs out and in, then fine, he sees the unique tab correctly.
    If the user clicks on the resource tree on the corresponding ressource, he also sees the unique tab correctly.

    Now my question : how can I reload the manager resource edit page automatically for the user in my plugin?

    I've tried to put a modx->sendRedirect() at the end of my plugin but this makes an infinite loop for the form saving and I never get the Modification Successful save (or something similar after a resource saving).

    Thanks a lot for your help.
      • 36225
      • 20 Posts
      Has really nobody any hint for me? Please?