• Resolved mattmary

    (@mattmary)


    Hi support,

    I’ve created an advanced custom field with a custom element renderer. the renderer displays a multiple select field.
    If I remove an option of this multiselect field and save, the value is not updated. If I add an option to this multiselect field and save, the value is saved.
    Does the field values are stored in javascript and I forgot to update them in my multiple select field?
    Did I miss something when creating my custom element renderer?

    Any help would be appreciate

    Kind regards

    Mat

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    I’m not quite sure to understand what you mean by “Custom Element Renderer”? On its own, the value of the Select Field should be updated when cleared.

    Note that the Select Field is a native ACF Field, and does not depend on the ACF Extended plugin. In case of doubt, I would recommend to disable all your plugins at the exception of ACF Pro. The field should be working fine out of the box.

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter mattmary

    (@mattmary)

    Hi @hwk-fr

    sorry for this late reply.
    For the custom renderer field I used the class https://github.com/AdvancedCustomFields/acf-field-type-template to create a multi select field. this multi select field contains also an autocompleter field which allow to populate this multi select field easily.
    I’ve gone deeper in the problem: when I empty the multiselect field and submit the form, the $_POST variable does not exist. when I have a value in the multi select field, the $_POST variable exist.
    I don’t understand why? Is there some javascript with the advanced custom fields? Do you have any idea why I don’t have my $_POST variable?
    Any help would be appreciated

    Kind regards

    Mat

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the clarification!

    Creating a custom ACF Field Type is a complex topic. Unfortunately it is out of bounds of the ACF Extended support territory, as this question is related to the native ACF plugin.

    I would recommend to post your question on the official ACF Support Forum. There are a lot of developers in that community which might help you in your case.

    Hope it helps!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘multiselect value not updated in backend’ is closed to new replies.