dfl3
|
| Posted: 08/11/2002, 5:41 PM |
|
I have used this type of function (http://www.gotocode.com/art.asp?art_id=39)in CC 2.0 but can't seem to figure out what I need. My field contains info like http://www.amazon.com/exec/obidos/ASIN/B00005K9R7/ and I want to make it clickable by using a graphic that replaces this text on the form.
I was trying the Before Show function and using gridname->fieldname->Setvalue($ValuetoSet) and not getting anywhere. Any suggestions
Thanks
Dan
|
|
|
 |
Nicole
|
| Posted: 08/13/2002, 2:17 AM |
|
Hello,
As I understand you want to display image as clickable link that points to address as proposed one. Well, you can add the Label type field that stores the address to the form and set its content type to HTML. Then build Before Show event for the field. Here is sample PHP code for CCS:
global $form_name;
$form_name->field_name->SetValue("<a href = \"".$form_name->field_name->Value."\"><img src = \"image_name.jpg\"></a>");
|
|
|
 |
dfl3
|
| Posted: 08/13/2002, 7:03 AM |
|
Thanks ... this got me in CC 2.0 too. Matbe I'll remember the HTML thing next time.
Dan
|
|
|
 |
|