83 Posts
squareweb
6 years ago
Topic

Hi,

I've got a parent search-list-form showing all records of content-item (parents). Every (parent)Row contains a button(icon) to show a list of child-records for the specific parent. The child-list works fine and is showing and filtering OK. Only when I hit the cancel-button to return to parent-search-list-for I encounter a white "invalid token-message" screen.

I also have a button to edit-content-form in parent-list and add-child-content-form in parent list. When I click on these buttons and return by "cancel"-button from the content-forms it works fine, the parent-search-and-list-form is shown OK. Only when I return from child-list by "cancel"-button the token-error appears...

Any Idea what's wrong?

Thanks again.

Mark

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
2
Level 1

Hi,

how do you show this child list when button is clicked - it this redirect or popup? What kind of button(which task?) do you use for cancel?

83 Posts
squareweb
6 years ago
0
Level 2

Hi Klas,

Thanks for responding. In my parent search-list-form each row of my list contains an icon-field. This icon is of "List & Search"-type which is linked by the (+) behind this option, to the child-list and corresponding menu-entry, this works fine, the child-list is OK and working (filtering etc.).

In my child-list I cancel by using a cancel (submit) button (task: cancel) in the search-part above the list-rows.

Thanks again 

Mark

83 Posts
squareweb
6 years ago
0
Level 2

Hi Klas,

This problem still occurs, in every new list&search form I create. Maybe I'm doing something wrong, I've added a detailed screenprint-composition of the workflow and settings. Maybe this helps finding a solution....

link to image (sorry I can't get to grips with your forum mediamanager): http://squareweb.nl/tmp/seb-invalid-token.jpg

215 Posts
iliil
6 years ago
2
Level 1

Hello Mark

I am not sure if the Cancel button would work in a search list view. 

I think  ( I might be wrong ) the cancel button behavior works in a form view only, where the URL that you got to the form from is being tracked.  In your situation, you get to the child search list using a standard view link with URL variables and so CANCEL button has no info where to get back.

Best

Michal

4229 Posts
Kadministrator
6 years ago
1
Level 2

Hi,

I would think the same, you probably need button Free with some variables that you passed on from parent list (e.g. parent search type name), so that it can build the right url to get back.

83 Posts
squareweb
6 years ago
0
Level 3

Thanks guys,

I tried $_SERVER['HTTP_REFERER'] with button-free but button-free only likes static links....

But the 'simple' Seblod-link-plugin JS-History-back did the trick for me...

https://www.seblod.com/store/extensions/561

Sometimes its too simple (:-

Thanks again for your input.

Get a VIP membership