No option to clear select

Support General No option to clear select

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2990
    SaqibSaqib
    Participant

    Hi,

    Please check this screenshot http://jmp.sh/Y8YF76s there is no way to clear the selection.

    I am using following parameters to define this select box

    
    'type'        => 'select',
    'multiple'    => true,
    

    Looking forward to its solution.

    Regards

    #3005
    SaqibSaqib
    Participant

    Hi,

    Any update for me ?

    Best Regards

    #3006
    Anh TranAnh Tran
    Keymaster

    Hi @Saquib,

    Sorry, I was working on some issues and didn't remember to answer 🙁

    Your problem is related to this issue where the previous code add extra empty <option> tag which allows users to clear selected option. However, it's not the default behaviour of <select> tag because <select> only shows options and force users to choose one of them. So I made the code work the same way.

    I suggest you switch to select_advanced which has option for users to clear the selection.

    #3017
    SaqibSaqib
    Participant

    Hi,

    Thanks for your reply.

    I tried using select_advanced but styles for it are broken for mutliple selections. As you can view in this screenshot http://jmp.sh/sVa2vnZ

    Looking forward to its solution.

    Best Regards

    #3018
    Anh TranAnh Tran
    Keymaster

    Oh, I forgot to mention that the select field has a new parameter select_all_none which will show the Select: All | None links. You can use it to clear selection.

    #3019
    SaqibSaqib
    Participant

    Awesome 🙂

    I will recommend you to make select_all_none default value true for select field if multiple is set to true as with multiple values selection, people need a way to clear their selection when needed.

    Thanks & Regards

    #3022
    Anh TranAnh Tran
    Keymaster

    Hi @Saquib,

    Actually I made it true by default in some of previous versions. But I received a feedback from an user that suggested to hide if by default to make it work exactly like before. So here is what we have now.

    #3028
    SaqibSaqib
    Participant

    Okay, Thanks.

    You can close this topic.

    Regards

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘No option to clear select’ is closed to new replies.