Custom Fields
Re-Envisioned
Support General No option to clear select

  • Creator
    Topic
  • #2990
    Saqib
    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #3005
    Saqib
    Participant

    Hi,

    Any update for me ?

    Best Regards

    #3006
    Anh 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
    Saqib
    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 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
    Saqib
    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 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
    Saqib
    Participant

    Okay, Thanks.

    You can close this topic.

    Regards

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