Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Need help with setFieldFormatting. Creating an anchor/link format has odd behaviours


Reply

1283 Views

Avatar
Hammy

8 December 2008 at 11:57am Community Member, 49 Posts

I have added the following formatting to a ComplateTableField:

$storesTablefield->setFieldFormatting(array(
         'ProductUrl' => '<a href=\"$ProductUrl\">$ProductUrl</a>'
      ));

I was expecting the page to go to that url, instead it opens up in a lightbox pop up window.

Also, when i click on any of the other cells in the ComplexTableField (excluding vew, edit, etc), instead of it opening a popup window to show the full details of the dataobject, it instead tries to load the url from the formatted field instead.

Is there an attribute that I need to add to this anchor to help control its behaviours?