How to Remove Field Caption in list page?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Suresh

How to Remove Field Caption in list page?

Post by Suresh »

How to Remove Field Caption in list page? Can anyone help me?


mobhar
User
Posts: 11494

Post by mobhar »

You may simply put this following code in Page_Load server event of List Page:

$this->YourFieldName->setCaption(" "); // adjust YourFieldName to your actual field name


ethanlazarus
User
Posts: 18

Post by ethanlazarus »

I've been trying to get this to work - in page load of list page, trying to replace field names - example field named c1, want to rename to date - would this be the code? tried and can't get it to go...
$this->c1->setCaption("date");


mobhar
User
Posts: 11494

Post by mobhar »

That code above is for v2021.

If you are using v2024, then you may simply use this code in Row_Rendered server event:

$this->c1->Caption = "My Date";

ethanlazarus
User
Posts: 18

Post by ethanlazarus »

Just what I needed - thank you so much!


Post Reply