Crocoblock / suggestions

The suggestions for CrocoBlock project
196 stars 79 forks source link

Jetengine: Adding a a multi select option in the new front end forms #878

Open asmarove opened 4 years ago

asmarove commented 4 years ago

There is no option to have a multi select for (select, radio buttons, Checkboxes) in the new front end forms , while it's available in the normal custom post type. 2 1

arekuki commented 4 years ago

+1

ahmadrusli commented 4 years ago

Yes. please add to new version. we need to select some countries. Thank you :)

designboxmedia commented 4 years ago

Yes please add this. We are using check boxes when they should be multiple select.
Chosen select would be a bonus too. https://harvesthq.github.io/chosen/

anderoav commented 3 years ago

Any news?

stasonua0 commented 3 years ago

+1

imhasem commented 3 years ago

is it possible to add select filed with search?

moxet commented 3 years ago

+1

Roberto77 commented 3 years ago

+1

iluvios commented 3 years ago

Feature still missing :(

Nelicquele commented 3 years ago

+1 I really need this option!

yuleidyvdres commented 3 years ago

+1 This feature will be really helpful

mianrashid commented 3 years ago

damn this feature should be there and this just stopped me from buying it.. I hope this feature was there with chosen js... saved me 750$

claujohnson commented 3 years ago

Unfortunately this solution is not yet complete in Crocoblock :(

developernerdsacademy commented 3 years ago

We REALLY need this feature!!! I have thousands of posts and when users add related posts, the form is so long! I would rather have a multi select for that or at least a way to make the checkbox field have a scroll instead of being a mile long!

iluvios commented 3 years ago

Yepp, still need this feature

nreljed commented 3 years ago

this function can only come with select2. unite your ranks and voices, in this post #3885 and tag all the possible problems linked to the select ecosystem as the dev forces are now divided between jetformbuilder and jetengine forms, this will become even more complicated to manage soon... at some point, a choice should be made, and it will be the right one :) be patient

Joseph089 commented 2 years ago

+1

honzabit commented 2 years ago

Hey, I created a small plugin that adds a new Select2 field component. The plugin works for single or multiple values (configurable). It's still an early release and I'm not sure yet it supports all the field options of the normal select component yet (can't find a way so far to solve this without duplicating code). It also works nicely inside repeaters as it observes newly added select elements and transforms them on the fly.

Anyway, you can grab it from here and let me know if something breaks so that I can fix it.

P.S: you obviously don't need to buy me a coffee and the code is under GPLv3

lucasvlc commented 2 years ago

here

Hello, I have used it but it didn't work. I couldn't fill the options with custom taxonomy terms... anyway it's nice to see somebody trying to fix this lack of feature.

honzabit commented 2 years ago

@lucasvlc makes sense. That's why I said above that I'm not sure yet it supports all the field options of the normal select component yet (can't find a way so far to solve this without duplicating code). The problem remains though and is not really the duplication that I care about, but the fact that it can break if crocoblock devs decide to alter the way they populate these field options. In any case, I just published a new version of the plugin, feel free to give it a shot and let me know.

newtonata commented 2 years ago

+1

aCodeDragon commented 2 years ago

+1million ;)

morosmo commented 2 years ago

+1

stefanradu9 commented 2 years ago

Hey, I created a small plugin that adds a new Select2 field component. The plugin works for single or multiple values (configurable). It's still an early release and I'm not sure yet it supports all the field options of the normal select component yet (can't find a way so far to solve this without duplicating code). It also works nicely inside repeaters as it observes newly added select elements and transforms them on the fly.

Anyway, you can grab it from here and let me know if something breaks so that I can fix it.

P.S: you obviously don't need to buy me a coffee and the code is under GPLv3

Amazing work, thank you!!

stapolin commented 2 years ago

This is something I would love to see added too. I build directory websites, and being able to choose multiple categories/taxonomies in a select dropdown while adding or editing a listing from the frontend would be amazing.

Ruudolfs commented 2 years ago

+1

stapolin commented 2 years ago

Just to add to my last comment..

Being able to choose a maximum number of items would be handy.. especially for directory sites where you may only allow a listing in up to 3 categories.

satomiao commented 2 years ago

+1

menzer2015 commented 2 years ago

Multiselect please +1 (2 years on) - lol

fbeach73 commented 2 years ago

+1 this is very necessary, and holding a lot of things up in the air for front end forms and options on taxonomy buildouts

menzer2015 commented 2 years ago

Come on guys multi select is a powerful tool it also helps with reducing layout clutter, I use chioces.js to convert multiple select boxes so you get a neat select dropdown but as you don't even have the multi-select as an option is causing me to use gravityforms but I would prefer to use jetformbuilder. please please release this after 2 years request

menzer2015 commented 2 years ago

BTW you only need this jquery to convert your select box to a dropdown box (Make sure to change the ID to your targeted ID) $("#points_of_interest").attr("multiple",''); <--- adds multiple to the selectbox

If you want it to look nice like the demo below then I have included a little snippet that may help some people, if you have a better solution please let me know but I hope this can help someone

Install the choices jquery and enqueue the jquery script Demo and code here: https://choices-js.github.io/Choices/

After you have enqueued the above script initiate the script with this code. Add this to your function file or snippet plugin make sure to change my ID below

add_action('wp_footer', 'jw_choices_select');
function jw_choices_select(){?>
<script>
jQuery(document).ready(function( $ ) {
  //Place your jQuery code here...
  //// Pass jQuery element
  $("#change_this_ID").attr("multiple",''); <---- this converts the simple select box to a dropdown multiple box which the choices.js jquery will convert into a beautiful select boxes
//  $('#change_this_ID').attr('data-calculate','25'); <-- I am still working on adding the data-calculate to the option of the select box for those that need to have calculations (I don't)

  var firstElement = document.getElementById('points_of_interest');
//  var firstElement = document.getElementsByClassName('checkradio-wrap');
var choices1 = new Choices(firstElement, {
    delimiter: ',',
    editItems: false,
    removeButton: true,
    searchEnabled: false,
    searchChoices: false,
    removeItemButton: false
});

});
</script>
<?php
}
zivoriol commented 1 year ago

+1000 Is there any update on this?

ghost commented 1 year ago

+1 Yes please!

tusharttyagi commented 1 year ago

+10000000, please. need this badly

WordpressTodayAgency commented 1 year ago

Just an update: They added Select2 with the option to select multiple values in JetFormBuilder and it's called Select Autocomplete https://jetformbuilder.com/addons/select-autocomplete/

tusharttyagi commented 1 year ago

Just an update: They added Select2 with the option to select multiple values in JetFormBuilder and it's called Select Autocomplete https://jetformbuilder.com/addons/select-autocomplete/

THANK YOU LIFESAVER

Perica888 commented 9 months ago

Hey, I created a small plugin that adds a new Select2 field component. The plugin works for single or multiple values (configurable). It's still an early release and I'm not sure yet it supports all the field options of the normal select component yet (can't find a way so far to solve this without duplicating code). It also works nicely inside repeaters as it observes newly added select elements and transforms them on the fly.

Anyway, you can grab it from here and let me know if something breaks so that I can fix it.

P.S: you obviously don't need to buy me a coffee and the code is under GPLv3

Do you have an update of your cool add-on because its stopped working on part of multiple selection