AI OnAI Off
Content, Products and most things are just IContent items, therefore you can use the IContentRepository to programtically create/edit them such as adding a form reference to a page/product.
Here's some examples of working with it
https://www.aperturelabs.biz/blog/creating-episerver-forms-via-the-api/
But there's plenty of articles / blogs out there but they are all pretty much the same use
Hi Scott! Yeah, that worked! Was actually using a wrong approach that's why it keeps giving me null. Thank you!
Just wondering if it is possible to call an episerver form directly through code? I've added an additional property to the product where it accepts an Episerver form but was thinking that it would be tedious to repeatedly drag and drop the form into each product (will be adding the form into all products). Can someone guide me to how to call a certain form/block (was also thinking that Form Container is a block)