Ankündigung

Einklappen
Keine Ankündigung bisher.

Remove existing filter in a drop down list using velocity

Einklappen
X

Remove existing filter in a drop down list using velocity

Einklappen
  • Filter
  • Zeit
Alles löschen
neue Beiträge

  • Remove existing filter in a drop down list using velocity

    I have a dropdown list with values (1,2,3,4) and i have applied a filter when normal user in user group logs in he can see only one out of four values. Could some one let me know, is there a way when a user in admin group logs then i need to remove the filter and display all values (1,2,3,4). For example User1("Group User") see only 1 in drop down and for example User2 ("Group Admin") see 1,2,3,4.

  • #2
    Easiest way would be to make two separate dropdown lists, put them in a group each and show only one of them (Velocity) depending on the permission.

    Best regards
    Snixx

    Kommentar


    • #3
      @Thanks, I have already implemented as you have suggested. But i would like to know whether it is possible to remove the filter or not.

      Kommentar


      • #4
        No, it's not possible to manipulate static filters during run-time - as far as I know.
        But it should work with dependencies on the dropdown, e.g. hidden field with filter value, which could be emptied using JS when user has admin permissions.

        Kommentar

        Lädt...
        X