Collapse sections based on resource

I have 2 resources that use the same model, but on one of them i need to open the form with some collapsed sections, how can i check wich resource is opening the form so i can make collapse true?
Was this page helpful?