6 years ago
6
Topic

Hi

In a search form instead of using the classical SEARCH button I tried to use a FREE BUTTON field.

The free button was set as a link to the same search list and in the additional custom variables I added:

ci_search_cp=$cck->getValue('ci_search_cp')


Where ci_search_cp is the alias of one of the search form.

however the result url has the "&ci_search_cp=" string with NO value passed.

Am I wrong with my syntax please?

thanks


Cyril


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

Search field has no server side value until form is submited so button can't pull this value from form when it is rendered. You would need t do it either client side (js) or server side with event that fires after search form is submited (not sure whether there is one..)

6 years ago
4
Level 1

Thanks Klas

actually the whole purpose was to add an anchor to the link of the SEARCH button. Since I didn't find a way to add this anchor I figured I had to use a free button but this time I can't pass variables.

SO I'm back to the first stage: how can I add an anchor to the result page with a search button please ?

which means: how can I generate

http://mydomain/?myparameter=xxx&search=mysearchlist&task=search#anchor

thanks

Cyril

4229 Posts
Kadministrator
6 years ago
3
Level 2

Sorry, I have no answer on this, it seems custom variables were removed from Save&Close task on buttons submit since I wrote this tutorial https://www.seblod.com/resources/extensions/plug-ins/button-submit-field 

6 years ago
2
Level 3

Hi Klas

Does someone then knows why custom variables have been removed from the button fields ??

And how can we now add an anchor ?


Thanks


cyril


6 years ago
1
Level 4

Hi 

no answer to this question please ? 

Does someone then knows why custom variables have been removed from the submit button fields ??

And how can we now add an anchor ?

thanks

cyril

4229 Posts
Kadministrator
6 years ago
0
Level 5

I would say only Saba can answer this.

Get a VIP membership