Dear Sir/Madam,
I refer to https://toolset.com/forums/topic/selector-naming-and-customisation/#post-2159863, I want to apply the select2 Multi-select boxes (pillbox) in form, is it possible?
Hello and thank you for contacting Toolset support.
I am not really sure what type of customizations you want to have, if you elaborate more about your use case, I might advise you better.
Please note, that the current implementation of relationship fields does not support having multiple values on the field.
Let me know more about your use case and we'll find out a way.
Dear Jamal,
I have a class and I want to enrol a group of students ( the WP users) into class, without the multiple select functions, I have to use a repeatable field and select the user from a list but the repeatable field cannot filter out all select student and the steps are more then if using multiple selections. For traditional multiple selections, it is not easy to review the number of selected before submission.
I am still not sure to understand the use case very well. However, I'd like to note some Toolset behaviors.
For example, for select fields, Toolset will always generate the dropdown complete(all the possible options). But, for relationship fields, Toolset will make it a select field if the possible values exceed a certain number(15), in this case, the generation of options is done through AJAX calls.
So, I still need to understand, what are the custom post types involved? What are the custom fields(posts and users fields) involved?
I believe this article is interesting if you will try to use AJAX hidden link
Dear Jamal,
Sorry for my confusing explanation, I try to explain a bit clear.
I have two custom post types "class" and "enrolment" while class and enrolment is a many-to-many relationship
Students (WP users) should enrol into a class by creating the enrolment post for each student, the enrolment post contains student records such as name, student id and email address.
I want to create a CRED form for the administrator to manage the class and enrolment, I want to have a multiple selection field contain all enrolment records, so that the administrator can select the student name from the selection, after submission, I can make the post-relationship between the selected enrolment and the class.
Not sure whether it is clear enough?
That's possible. Create a Relationship Form in Toolset->Relationship Forms, then include it inside the view of classes, or inside the class content template. And configure it to connect this class into any given enrolment, similar to what you can see on this screenshot hidden link
The class will be automatically selected, and you will have a dropdown to the enrolment post.
Please note, that you can't select multiple posts at one time, you will need to submit the post for each class-enrolment link/couple.
If you have more than 15 enrolments posts, the select field will automatically use a select2 control.