• Resolved sbeat

    (@sbeat)


    I was able to set the number of selections a user can choose in the select dropdown field settings, but I no longer see it in the settings. This was working yesterday but I do not see it today. I have not updated anything so not sure Why am I not able to see that option anymore. Oh where oh where has it gone?

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @sbeat

    I hope you’re well today!

    Please edit your select field on form and in its “Settings” tab (“select” field “settings” tab) make sure that the “Limit submission” option is enabled.

    If/once it is, you should then see the limit next to value of each option (value, not label) in field’s “Labels” section:

    2022-08-31_10-00-36

    2022-08-31_10-01-39

    Please double-check it. If it still doesn’t work, would you please export the form and share it with us?

    To export the form:

    – go to forms list in Forminator
    – click on a little “gear” icon next to the form in question and select “Export” option
    – download export file and put it on your Google Drive, Dropbox or similar account
    – post direct link to it in your response here

    Best regards
    Adam

    Thread Starter sbeat

    (@sbeat)

    What you shared limits submissions of each selection when what I really need is to limit the number of multiple selections. For instance, I have a dropdown on the form that lists around 50 lake locations, so what I want is for the user to select no more than 3 lakes. I remember there used to be a setting for this the other day but it is no longer there.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    HI @sbeat,

    I am afraid, Forminator does not have any such feature out of the box. Can you please check if the following workaround helps?

    https://gist.github.com/wpmudev-sls/5be7b5f7eac4132e1539b850b8ab751c

    You need to replace the ID of the select field and form ID according to your form. Please add the code using a mu-plugin. You may please find how to add a mu-plugin here: https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,
    Nebu John

    Thread Starter sbeat

    (@sbeat)

    I’m 100% sure it did because it was working last week and I could even change the settings for that. Wish I could’ve screenshot it before it stopped working. Anyway I will try that workaround in the meantime and see if it works.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @sbeat

    Thank you for the update.

    Please keep us posted if the workaround worked.

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @sbeat ,

    We haven’t heard from you for a while now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

    Thread Starter sbeat

    (@sbeat)

    I know it’s been a while but I am revisiting this issue. The mu-plugin code did not work for the dropdown selections. The user is still able to choose more than 3 options within the dropdown selection. I input the correct form id’s and also added the css selector within the field settings.

    Is it because the form is within the popup? Any further assistance would be greatly appreciated.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @sbeat,

    Could you please share the form export where you are testing the snippet so that we could have a better idea?

    Please check the following doc on how to export a form:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    If you are concerned about any sensitive information in the form export, then you can duplicate your form, remove any sensitive information, and then export it.

    You can share the export file via Google Drive, Dropbox or any cloud services in the next reply.

    Looking forward to your response.

    Kind Regards,
    Nithin

    Thread Starter sbeat

    (@sbeat)

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @sbeat,

    It seems like the Google Drive URL is private. Possible to make that URL public, so that we could access the export?

    You can also use pastebin to share the export too.

    Looking forward to your response.

    Kind Regards,

    Nithin

    Thread Starter sbeat

    (@sbeat)

    Sorry yes it is public now

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @sbeat

    Thanks for sharing the form!

    I checked it, along with the code, and it all works fine if correctly configured but… you did not configure form correctly.

    The first thing (I believe you got that right) is to set form ID in this line of the code:

    form_ids: [791, 9034],

    The second thing is to define limits in the code right in these lines:

    'checkbox-2': 5,//[field-id]:[limit]
    'select-1': 1

    If you only want to limt the “lakes selection” field, then you cam remove the checkbox line and the select-1 would be correct, except you need to set limit (so number after : ) to 3.

    Finally – and that’s where the issue is – you need to add correct class to the select field. You have added “select-1” there and that’s why it doesn’t work. The class name to be added there is

    wpmudev-option-limit

    like this

    2023-01-23_11-43-43

    Once you save the form with this setting and clear all cache on site, it should start working.

    Kind regards,
    Adam

    Thread Starter sbeat

    (@sbeat)

    Thank you, finally got it to work!

    Hi man can you please help me out too!! I am also facing the same issue as I want my users to select only 10 options but they can select more , Can you please guide me about this , I don’t know anything about coding , so please help me in a simple way so that I can also get what i want

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    H @jhonesnow

    Per forum rules we don’t spam the thread starter, could you please create a new ticket and we can help you with it?

    Best Regards
    Patrick Freitas

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Limit number of selections on dropdown field’ is closed to new replies.