• Resolved mrmind

    (@mrmind)


    Good day

    Thanks for the wonderful support. I suppose the solution would be easy with Form Field Manager however due to affodability I forced to work on a fee feuatures and snippers that is avaible to us.

    I followed the instruction on this link: https://github.com/impress-org/givewp-snippet-library/blob/master/translation-snippets/change-text-locally-per-form.php

    I managed to add form fields on specific form onlny as directed. The problem is when I check the data for the submitted form those new fields is not there both on the mysql data base (backend donormeta or donationmetat table)

    Here are some notes:

    1. I don’t get any error.
    2. When I use the very same code without the condition for selecting to show on specific form the fields work fine.
    3. Since it works fine I decided to add the code for the fields inside the if statement as guided by the snippents, the form load properly but on submition it does not save the data to the databse it only saves the other fields which are not form specific.
    4. Please note that the fields can save properly when not using the if statement.

    Give()->donor_meta->add_meta( $donor_id, ‘_give_donor_myfield101’, $new_myfield101 ); // to save to donor meta.

    I there a work around this?

    I realy need to have extra fields on 1 form but keep standard field on other forms.

    Please advice.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mrmind,

    Glad you reached out! With information I have, it looks like the Fields API is not saving fields when filtering per form. This needs a bit more of a deep-dive than can be done here, so I would recommend reaching out to the Discussions on Github: https://github.com/impress-org/givewp/discussions.

    You’ll find development folks who will be able to help and give you some solid recommendations for moving forward. I’ll mark this as resolved for now, but you are always welcome to open a new ticket with any questions you may have. We’ll be happy to give things a look. Have a great day!

    Thread Starter mrmind

    (@mrmind)

    Hi @stephanieliy

    Thank you very much for getting back to me. Is there a way to hide the form fields using the code snippets?

    By this I mean I could just add 3 custom fields for all forms since when it’s all forms it can save data properly. Then I would only HIDE those fields on the forms where I don’t need them, I believe this would make it possible to save the required data.

    I’m loving this plugin.your support is of top notch

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form field for specifi form only’ is closed to new replies.