WeStandWithUkraine

1279 Posts
Bucklash
4 years ago
2
Topic

Hi Klas

Using Save and Redirect, for me, custom variables does not accept $cck->get('some_field')....

Is that the case or is there something amiss my end?

thanks

AIM

I have a list and Search which pulls in just one article based on id.

On this list is a form for another content type.

I save this form and want to return to current page.

Currently I can return to current page but not correct fragements in url ie: 

/admin-area/sessions/session?search=session_item_teacher&task=search&id=$cck->get('question_fk')

Jon

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

From what I know you can't pass a value from the form to the search using custom variables, only the other way around. Thing is that form does not have any value on the server side until it is saved. ALso it maigh not work with redirect function as redirect back by default returns to exaclty the same url as it came from.

1279 Posts
Bucklash
4 years ago
0
Level 2

ok thanks

I have success using 'button - submit - save and redirect', using beforerender to do a string replace applying stored/live values on this button field.

phew 

Get a Book for SEBLOD