This topic is locked
[SOLVED]

 Hide by default fields in list page

9/4/2020 3:26:05 PM
PHPRunner General questions
A
alfonso authorDevClub member

As I have more than 20 fields in a table, I want to show by default only 4 in list page, but I want visitor can select what more fields to show or hide

I know how to hide fields:

$pageObject->hideField("CustomerID");
But then in Show/Hide fields button CustomerID is marker as selected, as if it were being viewed, which leads to error. Of course, if we click then the field appears and disappears.
How can I get the CustomerID field to appear unchecked in the list of fields?
Is there any other way to do it?

Myr0n 9/4/2020



As I have more than 20 fields in a table, I want to show by default only 4 in list page, but I want visitor can select what more fields to show or hide

I know how to hide fields:

$pageObject->hideField("CustomerID");
But then in Show/Hide fields button CustomerID is marker as selected, as if it were being viewed, which leads to error. Of course, if we click then the field appears and disappears.
How can I get the CustomerID field to appear unchecked in the list of fields?
Is there any other way to do it?


Please, see the answer here.
Also is the same question that you asked in that thread.