Hi Max,
IN v7 the "Text" View has "Search Listing" in the "Data" tab. For v8 how would we replicate this?
Thanks!
Admiral
Hi Max,
IN v7 the "Text" View has "Search Listing" in the "Data" tab. For v8 how would we replicate this?
Thanks!
Admiral
Hi Max,
Could you add "Search Listing" capability to the next update?
Thanks!!
Admiral
Hi Admiral
How do you want the field to work exactly ?
You can use PHP code in the WHERE setting of your Read Data to add the search box value if its present
Hi Max,
Ideally just like in v7 where it was a behavior in the advanced settings of text as it was really simple to implement:
Search is a pretty common thing so it was nice that it was a built-in behaviour but I would be open to a different search method but would appreciate a tutorial!
Thanks!!
-Admiral
the way to do it now is to use PHP in the WHERE setting of Read Data:
<?php if(!empty($this->data("field-name"))): ?>
AND column_name LIKE '%{data:field-name}%'
<?php endif; ?>
v7 did the same but at the background, you can also search multiple fields in the code above
Perhaps you could add a FAQ giving a real example of the new method of adding a search button to a form, for those of us that are not quite experts on coding ;-)
Admiral
Hi Admiral
I added this feature to the new v8.0.29, I hope you will like it, no need to use the code