That's cool that this is possible with Elementor forms. Challenge for you. Useful stuff like this minus code snippets. We seem to be getting lots of code snippets lately.
Brilliant update, Imran. It's good to go! How cool would it be if the writer was able to 1. add an addition block (i.e. another section containing an image upload button and a WYSIWYG editor), as and when required 2. preview the content before submitting. With the first idea, I'm imagining there would need to be a function (or facility, like Pods) that enables repeating/duplication of a field or [in this case] a section. Can Pods work with (not just alongside) ACF? By the way, if they haven't already, Code Snippets should award you with a lifetime subscription. Actually, so should Elementor!
That's the thing I was trying to do with a WYSIWYG editor on the form. I was able to add some code that enabled that - BUT - once you hit send - EL doesn't process it to a) within the Form Submission, or b) to the Custom Post Type. So all of the detail inside that field is lost. I may have complicated my code - who knows - but I hope someone cracks that cookie.
Other question: How can I add a “country” selector (for shipping address) to the Elementor Forms? Your old video with the plugin (Like Elementor Forms - Add Country and Cities for Free) no longer works. I have tried using a snippet, but no luck
How would I set the featured image? Assuming I check the field featured image as an available field on my Custom Post Type? I see the variable or featured image ID might be set_post_thumbnail or possibly just post_thumbnail? I would add a form field called Featured Image & collect the upload like the other 2 images. I'm not sure how to edit this section of code: // Define your field mappings: Elementor form field ID => ACF custom field name // Insert a new post into the specified post type and anywhere else I'm missing...
Hi - awesome video as always. I wanted to use a drop down for the categories, this may not be the perfect solution but I added the following php and it worked for me. // Prepare post title and content based on the field mappings $post_category = isset($raw_fields[$post_category_field]['value']) ? $raw_fields[$post_category_field]['value'] : ''; //Get category by slug $category = get_category_by_slug( $post_category ); // Insert a new post into the specified post type 'post_category' => array( $category->term_id ) // Use mapped category Hopefully you find this useful.
Can this be done after the fact? Meaning if the form has already been created and submissions have been collected. Will it do all entries that are in the db from before?
@@websquadron is there a way we can do this? Need to take submissions and lay them out so that someone can see them visually. The submission includes: Name, email, Phone, state and an image.
If that's the case, why not create a form with GPT and connect it to ACF? This way you can add any type of field you want, and it will solve the WYSIWYG issue.
It would also be great to allow a category to be set - like a standard Post category that I have also applied to my Custom Post Type "Episodes" You mentioned at the end that taxonomies were tricky, so I'm just wondering if it's not possible with this Elementor Forms version. P.S. loving this idea for other collections like your reviews collector here : ua-cam.com/video/jx2NAfdix6w/v-deo.html
This is something to continue to build on. Especially since it has the option to save as a draft. Thx
Wow, this is very nice, you just saved me from a whole plug-in, thanks for sharing this Imran.
This is so cool, you are the man
Very cool, thanks Imram.
That's cool that this is possible with Elementor forms. Challenge for you. Useful stuff like this minus code snippets. We seem to be getting lots of code snippets lately.
Some code will be needed ... somewhere ...
Brilliant update, Imran. It's good to go!
How cool would it be if the writer was able to
1. add an addition block (i.e. another section containing an image upload button and a WYSIWYG editor), as and when required
2. preview the content before submitting.
With the first idea, I'm imagining there would need to be a function (or facility, like Pods) that enables repeating/duplication of a field or [in this case] a section. Can Pods work with (not just alongside) ACF?
By the way, if they haven't already, Code Snippets should award you with a lifetime subscription. Actually, so should Elementor!
That's the thing I was trying to do with a WYSIWYG editor on the form. I was able to add some code that enabled that - BUT - once you hit send - EL doesn't process it to a) within the Form Submission, or b) to the Custom Post Type.
So all of the detail inside that field is lost.
I may have complicated my code - who knows - but I hope someone cracks that cookie.
Superb 🔥
Amazing, I think I can optimazing the work flow for my friends 😅
Perfect!
Other question: How can I add a “country” selector (for shipping address) to the Elementor Forms? Your old video with the plugin (Like Elementor Forms - Add Country and Cities for Free) no longer works. I have tried using a snippet, but no luck
How to make a “update form” to update metadata values based upon submission of a form on target page?
How would I set the featured image? Assuming I check the field featured image as an available field on my Custom Post Type? I see the variable or featured image ID might be set_post_thumbnail or possibly just post_thumbnail?
I would add a form field called Featured Image & collect the upload like the other 2 images.
I'm not sure how to edit this section of code:
// Define your field mappings: Elementor form field ID => ACF custom field name
// Insert a new post into the specified post type
and anywhere else I'm missing...
I would just use an image custom field and then use that for the loop grid or single post template
@ since I’d be going back in to edit in headings and text formatting, I could also set the featured image.
Hi - awesome video as always. I wanted to use a drop down for the categories, this may not be the perfect solution but I added the following php and it worked for me.
// Prepare post title and content based on the field mappings
$post_category = isset($raw_fields[$post_category_field]['value']) ? $raw_fields[$post_category_field]['value'] : '';
//Get category by slug
$category = get_category_by_slug( $post_category );
// Insert a new post into the specified post type
'post_category' => array( $category->term_id ) // Use mapped category
Hopefully you find this useful.
This is very interesting but is it feasible without Elementor Pro? Can another free form plugin do something similar?
That would need testing especially with the processing.
JetFormBuilder the best and free. You can edit the post too!
Can this be done after the fact? Meaning if the form has already been created and submissions have been collected. Will it do all entries that are in the db from before?
Nope :(
@@websquadron is there a way we can do this? Need to take submissions and lay them out so that someone can see them visually. The submission includes: Name, email, Phone, state and an image.
If that's the case, why not create a form with GPT and connect it to ACF? This way you can add any type of field you want, and it will solve the WYSIWYG issue.
Because I wanted to use EL Forms :) :)
It would also be great to allow a category to be set - like a standard Post category that I have also applied to my Custom Post Type "Episodes"
You mentioned at the end that taxonomies were tricky, so I'm just wondering if it's not possible with this Elementor Forms version.
P.S. loving this idea for other collections like your reviews collector here : ua-cam.com/video/jx2NAfdix6w/v-deo.html
It was to do with processing where it used the taxonomy as the selector. I need to revisit this as I was close to cracking it