module-form_builder icon indicating copy to clipboard operation
module-form_builder copied to clipboard

Add enter when a filter is applied to a view

Open sudeepdoon opened this issue 7 years ago • 1 comments

Scenario:

  • A form is created with one or more fields
  • A new view is created in the above form with filter on one of the fields
  • Assign rights to a client to the above view
  • Login as the client to whom the view was assigned
  • Add a new record..

Result: The edit screen does not come. When we login as Admin a blank row is seen added.

sudeepdoon avatar May 31 '18 11:05 sudeepdoon

Hi @sudeepdoon, ah this one! Yeah this is actually known: it's not exactly a bug, just an idiosyncrasy of using filters with Views. I've logged the issue on the main Form Tools core repo here: https://github.com/formtools/core/issues/36

Basically the problem is that as soon as the submission is first created, the default values in the form submission may prevent it from appearing in the View in which is was just created. For standard filters, you can get around it by using the Default Values option on the View so that it'll match whatever criteria you've specified in the filter, but you can't do that for Client Map filters.

I will solve this at some point but it's very complex and kind of low priority, so don't expect a fix soon. Sorry about that.

benkeen avatar Jun 09 '18 16:06 benkeen