• Resolved acrspf

    (@acrspf)


    I need to map the comma separated values in the Forminator file upload field to the ACF (Advanced Custom Fields) plugin Gallery field, which has a different format. ANY help appreciated, I’ve tried numerous solutions and none work. Anyone have any resources or ideas?

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter acrspf

    (@acrspf)

    Thank you, but I have multiple field names to map to as well as multiple forms.

    Can the function name be customized?

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @acrspf,

    I hope you are doing well today!

    You can also add other ACF fields to the array in the code instead of creating a new function for each form. You can see an example below;

    $acf_fields = array( 'mygal, mysecondfield, mythirdfield' ); // set your ACF gallery fields names
    $form_ids = array( 16502, 16503, 16504 ); // set your form IDs

    However, if you want to add different functions for each form. It is not suggested but you just need to rename function name and add the same code under it to repeat. You can do something like this;

    <?php
    add_action( 'forminator_post_data_field_post_saved', 'wpmudev_update_post_acf_uploads', 10, 4 );
    function wpmudev_update_post_acf_uploads( $post_id, $field, $data, $cls ) {.........
    
    add_action( 'forminator_post_data_field_post_saved', 'wpmudev_update_post_acf_uploads_2', 10, 4 );
    function wpmudev_update_post_acf_uploads_2( $post_id, $field, $data, $cls ) {........
    
    add_action( 'forminator_post_data_field_post_saved', 'wpmudev_update_post_acf_uploads_3', 10, 4 );
    function wpmudev_update_post_acf_uploads_3( $post_id, $field, $data, $cls ) {........

    Please let us know if you need further help or clarification on this.

    Kind regards,
    Zafer

    Thread Starter acrspf

    (@acrspf)

    Thank you, I will try that! Sorry for the late reply, another project had me for a while.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @acrspf

    Since we didn’t hear from you again, I’m assuming it worked.

    I’m marking this as resolved but if it turns out you still need assistance, just let us know and we can get back to it.

    Best regards,
    Adam

    Thread Starter acrspf

    (@acrspf)

    Hi Adam and thank you! I have been very ill for the last week+ and am just now getting back to some semblance of working life normality.

    I’ll be working on this over the next few days, I don’t anticipate problems, but I will certainly let you know if I need more help.

    Thanks for all your wonderful help!

    Thread Starter acrspf

    (@acrspf)

    I am still having issues. The code runs but I get no images in the gallery. Below is what the data from the acf field looks like a:3:{i:0;s:1:”0″;i:1;s:1:”0″;i:2;s:1:”0″;}

    Question: Do I need to change this [‘postdata-1’][‘post-custom’] in to reflect the form field name?

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @acrspf,

    Could you please share the final modified code which you have applied, so that we could have a better idea and suggest based on that?

    You can use pastbin, google drive, or any such cloud services to provide the code snippet.

    Looking forward to your response.

    Kind Regards,

    Nithin

    Thread Starter acrspf

    (@acrspf)

    Thanks Nithin for all your help, appreciate it a lot!

    Here you are

    https://drive.google.com/file/d/1aJUyX4KuBPaJFCp9AHR3NobDZFaF-dpr/view?usp=sharing

    Thread Starter acrspf

    (@acrspf)

    Nithin, I have permission to let you log in and look at it directly. Contact me through email and we’ll set this up.
    Thanks 🙂

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @acrspf

     Please don’t offer to send or post logon credentials on these forums: https://wordpress.org/support/guidelines#the-bad-stuff

    It is not OK to offer, enter, or send site credentials on these forums. Thanks for your cooperation.

    Thread Starter acrspf

    (@acrspf)

    Steven, where did I do that or offer to do that? I suggested direct contact through email – which is the only other way to set up something like that, yes?
    Do you have another idea how we could coordinate someone logging in to look at the problems?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You may not discuss that here. Devs will get in trouble if they accept your offer to login; you will be put into a moderator-review mode if you continue to offer it here.

    Were the dev to ask to login, here’s our reply:

    I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us escalating this to the plugins team.

    It’s never necessary to do that. Here’s why.

    There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.

    • Ask for a link to the https://pastebin.com/ or https://gist.github.com log of the user’s web server error log.
    • Ask the user to create and post a link to their phpinfo(); output.
    • Ask the user to install the Health Check plugin and get the data that way.
    • Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
    • Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again.
    • Ask the user for the step-by-step on how they can reproduce the problem.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way is a short cut that will get you into real trouble in these forums.

    Thread Starter acrspf

    (@acrspf)

    At this point we are 7 weeks into this with no resolution (although some of that is mine, mostly it stems from having to wait a day or more between replies). This is a paid product; we are considering getting a refund and moving to another plugin if we don’t get enough support to get it fixed NOW. Every day this is remaining unsolved is costing us money and pissing off our client.

    So once again, how do I get this resolved? Because this isn’t working.

    There are no relevant error log messages. We have health check, the site is fine, and I ran through potential plugin disable and cache issues a month and a half ago.

    At this point I don’t understand why custom field functionality is not already built into a paid product, when others have it. We like Forminator, but this isn’t the only custom field issue we have experienced, and we make heavy use of custom field.

    PHP is up to date and there are no other issues related to it.

    We’ve been through all that troubleshooting already, so please advice as to what we can do to get this resolved over the next few days. Soonest. If I have to spend ten hours rebuilding the forms in anther plugin I want to know ASAP so I don’t lose the contract.

    thank you






    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    “This is a paid product; “

    .comm

    Support of all commercial themes and plugins is out of scope for these forums. While we will not close your post, we also cannot guarantee any support at all, be that by volunteers or the developers. We recommend you instead use the developer’s official contact for their premium offerings, as that is the most direct line..

    Thread Starter acrspf

    (@acrspf)

    Thank you Steven, but I would have appreciated it if this forum TOLD PEOPLE THAT before wasting our time. I don’t see anywhere on the forum head that it says free support only, and it was never mentioned to me nor was I asked.

    Thanks for nothing at this point. Lots of wasted time.

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Mapping Forminator upload field to ACF Gallery field’ is closed to new replies.