Hello everyone, I've been working with Formidable Forms in WordPress to programmatically create form fields using PHP. I've written a function that is supposed to create different types of fields based on the input it receives. While the function successfully creates image fields, it fails to create fields for 'text' and 'textarea'.
Code: https://codefile.io/f/8zPOk4u4Z5
When I run this function with the 'image' type, it works ok and creates the field (not all the attributes are perfect, though). However, when I attempt to create 'text' or 'textarea' fields, they do not appear in the form, or they are not functional as expected. Has anyone else encountered this issue or can spot something in my code that may be causing these specific field types to fail? Any insight or suggestions would be greatly appreciated! Thanks!