Changing the link

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
calder
User
Posts: 3

Changing the link

Post by calder »

I have a section in xxxxxxlist.php that shows a QR code in a field, which is setup as a hyperlink. This gives me...

// QR
$this->QR->LinkCustomAttributes = "";
if (!ew_Empty($this->QR->CurrentValue)) {
$this->QR->HrefValue = "mysite" . $this->QR->CurrentValue; // Add prefix/suffix - this is the 'as generated' line

This shows the CurrentValue as the href link. But I'm trying to just show the text 'QR' as the link, while keeping the value of CurrentValue for the URL to go to.

Any help, please?

Paul


mobhar
User
Posts: 11737

Post by mobhar »

Use "Row_Rendered" server event. Read "Server Events and Client Scripts" in the help file.


Webmaster
User
Posts: 9427

Post by Webmaster »

To show a custom value for display, in Row_Rendered server event, add:

$this-><Field>->ViewValue = "<custom value>"; // Replace <Field> with the actual field name and <custom value> with the actual custom value


calder
User
Posts: 3

Post by calder »

It was that easy!

Thank you...

Now to tackle Google Maps.

Paul


Post Reply