List Manager Forum

Note before deleting record

Usuario moon_1769 2014-08-19 11:39:58

Hi, I use your extension as a giftlist on wedding website. There is a list of records (gifts), and website visitor can delete record as he want to buy this gift for newlyweds. But there is a problem, cos there is only one login/password for visitors, so I cant control who reserved this gift. Is there some solution for this? For examle one text field, where the visitor writes his name, and then he can delete the record?

Thanks, Peter

Moonsoft support 2014-08-19 13:18:08

Hi,
we'd use another approach to build the system you're describing, using views instead of deleting records. Here our suggestion:

- Add an extra field to your list (textfield) that will contain user name. Initially all records will have an empty value here.
- Create a view of your list. The filter: username=empty
- Publish the view instead of the list. Now visible records are only the ones without username.
- Give users permission to edit (not to delete) records. Set the edit form to only contain the username to type. You can set it as required.


This should do the work. As soon as any user edits the record to make the reservation, he will be asked his name. When saved, the record will dissapear from the main view but you will still keep all the information, you can check the names attached to the records fron the back-end, or publishing the main list at another private section of the site.

Please let us know if you need more help with this.


Regards

Usuario moon_1769 2014-08-19 22:22:38

Hi,

thanks, this is really a solution of my problem. Everything works great, I have only one problem left, I dont know where and how to setup the filter. (display only rows with null value of column "name")

Peter

Moonsoft support 2014-08-20 09:20:37

Hi,

You can setup the filter in view configuration. Create a view and configure the filter at field list section, look for field 'name' in column 'Data Filter', select 'equals' and leave text field empty. This will display all records with no value at column 'name'.


Regards,

Usuario moon_1769 2014-08-20 11:44:21

Hi,

everything is OK now. Works great. Thanks for support.

Peter

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!