The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Embed A Single Field
Hi,
I've looked through the docs on embedding forms and haven't seen how to select a single field to embed. I can see how to embed the entire form, which is great! In Form X, I want to embed only *one specific field* from form Y.
Actually, I'd like to create an entry into form Y by embedding the field from that form into Form X.
If anyone here's found a way to embed a single field, I'd be grateful if you shared how you did it!
September 10, 2018 at 4:45 am
There is no way to do what you want without custom code. By design, fields have a one-to-one relationship with the forms on which they've been created. They are not available as entities apart from their parent form.
To create an entry for form Y from form X you have to embed form Y into form X or write custom code to create a new form Y entry when form x is saved.
September 10, 2018 at 12:51 pm
Yep. Custom code is the way to go.
Have to use a hook to create an entry in another form using a value in the current form. It's be *great* if this was made into a form action. Rather than using the Snippets plugin to make and run the code. This would make Formidable a far more powerful resource. True workflow apps could be made with Formidable far more easily with this simple addition. I'd certainly pay for the upgrade!
For anyone interested, here's a link to the documentation on the hook: After creating an entry, create an entry in another form.
September 10, 2018 at 4:33 pm
Creating/Updating/Deleting entries in another Form is possible from Form action using Formidable API add-on.
https://formidableforms.com/knowledgebase/formidable-api/#kb-create-an-entry-in-another-form
https://formidableforms.com/knowledgebase/formidable-api/#kb-update-an-entry
Discussion closed.