Approved uncheck on saving

3 posts by 3 authors in: Forums > CMS Builder
Last Post: September 21, 2011   (RSS)

By MickC - September 20, 2011

Is there an easy way of have a record automatically become "unapproved" when a non-editor changes it?

We have salesmen that enter machine details, then a designated editor checks them, and ticks the approved checkbox to enable them to be listed on the website.

Editors only have access to the approved checkbox, and salesmen can only create new records, view all, and modify only their own.

What i want to prevent, is after the Editor approves it, the salesman can modify it to add more pictures etc, but when doing so could enter incorrect pricing etc, while sitll listed on the website.

Ideally, on a salesman modifying the record, if it unchecks the approved status, the editor must check it before it appears back on the website.

Any ideas?

Re: [MickC] Approved uncheck on saving

By Jason - September 21, 2011

Hi,

To do this you could write a custom plugin that would set the value of the check box to 0 (unchecked) when a non-editor user clicks the save button on a given record.

If you would like us to create that plugin for you, please email consulting@interactivetools.com and we can go over some options.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [MickC] Approved uncheck on saving

By gkornbluth - September 21, 2011

Hi Mick,

Have you looked at the add on from Djulia at: http://www.interactivetools.com/add-ons/detail.php?Alert-Record-Saved-1052

or the post at: http://www.interactivetools.com/forum/gforum.cgi?post=89827

It isn't exactly what you want but maybe it can act as a framework.

There's also the fieldresetter plugin at: http://www.interactivetools.com/iforum/gforum.cgi?post=75874

Between the two, you should be able to change the value of a checkbox.

Let us know what you find.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php