Track all forms on portal

Hi,

I’m looking to do a system audit and was hoping there would be a feature to list all the pages where a form exists. Does anyone know if this is possible?

Thanks

Hi @Niall, if you’re familiar with the developer console in the browser, you can enter this slice of code while in your live app to return all views that have a type ‘form’:

const formViews = Knack.scenes.models.flatMap(scene =>
  scene.views.models.filter(view => view.attributes.type === "form")
);
console.log(formViews);

You should then be able to see all attributes about those view keys, along with the scene key they are in:

Hope that helps!

1 Like

This might help :thinking:

This is a much better suggestion! Thanks @CarlHolmes.

Actually suggested by the amazing @CSWinnall :star_struck: - I had it in my Knack bookmarks list but had forgotten all about it :crazy_face:

There is also the Definitions utility too:

https://find.knack.com/definitions#home/

1 Like

Thank you both for the responses, very helpful!

1 Like

That’s the one I rely on. I didn’t know about the other. Cool!
I’m pretty sure @NormandDefayette_CortexRD showed me this one.

2 Likes