332 Posts
Kenneth
7 years ago
3
Topic

Hi,

I've searched a while without finding the answer to this.

Is it possible to use jGrid or something to make toggeling a field possible?

What I want to accomplish is to change a field in a list with table template. The content to be listed here is orders, and the field I want to toggle is "not invoiced/invoiced". 

That way the user can see the list of orders and invoice them from external system, and just click the "not invoice" button/link and have it toggle to "invoiced". This way it will be easy to filter the table list according to "not invoiced/invoiced" etc.

Anyone got an idea if this can be done?

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
2
Level 1

Out of the box currently only reordering works https://www.seblod.com/resources/tutorials/adding-drag-and-drop-ordering-functionality-to-your-front-end-managers

For any other functionality you need to add your own client side javscript to react to clicks and server side script that implements users action (toogles the right database column). 

Another option in your case is to use some javascript that changes normal radio field to the toogle button, e.g http://bootstrapswitch.com/

332 Posts
Kenneth
7 years ago
1
Level 2

Hi again, and thanks for answering. 

"Another option in your case is to use some javascript that changes normal radio field to the toogle button, e.g http://bootstrapswitch.com/"

Will this work in list & search views? (I didn't know I could place radio field to show in these lists)

4229 Posts
Kadministrator
7 years ago
0
Level 3

Ah, sorry, yes - you are right, can't be used in lists directly - you can put radion in list then apply JGrid form typograhpy on it, but you will still need to implement some sort of ajax solution to save those values.

Get a VIP membership