Select field - Let the user add new custom value

Support MB Builder Select field - Let the user add new custom value

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38803
    Ioannis TsimpidisIoannis Tsimpidis
    Participant

    How to enable the user adding new custom values for the select fields?
    I can't find a way and this is an extremely essential feature. Isn't this supported?

    #38805
    Ioannis TsimpidisIoannis Tsimpidis
    Participant

    subscribing via email

    #38815
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your feedback. This feature request is already in our development queue. Hopefully, it will be available soon 🙂

    #38822
    Ioannis TsimpidisIoannis Tsimpidis
    Participant

    Sounds promising.

    For the time being - I handled my requirements with a different approach.

    Note: I didn't check if that could be possible with hooks or other customisations over the select field.
    Maybe there is a workaround with that approach.

    But here is my solution.
    Created a Settings Page for that post type.
    Created a field for the settings page. It will accept the values (or the combination values - labels) that we want for the select field. Set the field as clone-able. Create some sample entries for the field.

    Then for the original select field that we want those values - use the callback: callable_function for the options.
    In functions.php - create the callable_function - make it get the values from the settings page - prepare the options and return them for the select field.

    Later on, if the user needs to add more values (not on the fly though while editing/creating the post) - he can go and add more values from within the settings page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.