ListView Columns disappear after searching or sorting

Hello,

In Studio, I added a field to the ListView of my custom module. I put this field in the “Default” column. The first issue is that users still need to add the field manually using the Column Chooser. Is there a solution to display the field by default?

The second issue occurs when users add the field using the Column Chooser. The field is visible in the ListView but when applying a filter or sorting the ListView on a column, the ListView layout resets and the added column disappears. Also, when users log in again they complain that the field is removed from the ListView and they need to add it again. How can I solve this issue?

SuiteCRM version is 7.11.20

Set the correct permissions on the SuiteCRM directory (Linux):

  sudo chown -R www-data:www-data .

  sudo chmod -R 755 .

  sudo chmod -R 775 cache custom modules themes data upload

  sudo chmod 775 config_override.php 2>/dev/null

Thank you for your response.

It didn’t help. I added the field using the Column Chooser. After I logged in again or when applying a filter, the field was not visible anymore.

DO you have any errors in the log files or browser console?

No, I don’t see errors. I can add the field, but when clicking the column for sorting the page is being refreshed and the added field is not visible anymore.

I found that when I choose Profile → Reset User Preferences, it uses the default ListView settings and all columns are displayed correctly.

Is it possible to only reset the ListView preferences for users instead of resetting all user preferences?

I don’t know we could do that. It will reset all preferences. Check out the docs: