This topic is locked

Read only fields in edit disables ajax in advanced searrc

8/16/2008 3:16:25 AM
PHPRunner General questions
J
johan-v author

Hello,
Situation:

I mark a field readonly. ( Field properties in the visual editor for a edit page )
Result:

Doing this disables Ajax auto suggest in advanced search.

Searching with ajax in the list page works normal.
Remarks:

I found that marking a field readonly in the visual editor edit page also changes the properties

of that field in the visual editor search page.
Any tips?
greetings,
Johan

J
Jane 8/18/2008

Johan,
you can edit your SQL query on the Edit SQL query tab in the following way:

select field1,

field1 as field1_search,

...

from TableName



And then set up different settings for field1 and field1_search fields on the Visual Editor tab.

J
johan-v author 8/18/2008

Jane,
I found another solution but would like to be sure it is safe.

Instead of using a read only field I just put {$value_fiche_item01_naam} directly in the source code view of the visual editor.

I can not see the value in the visual editor but the page is generated fine.
Is this safe?
greetings,
Johan

J
Jane 8/19/2008

Johan ,
Yes. You can use {$value_fiche_item01_naam} as field value on the add/edit pages.