Webform not reading php format

machi27 - September 5, 2009 - 09:41
Project:Webform
Version:6.x-2.7
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Hi I wasnt sure if this was a bug or not, I opened a forum topic (http://drupal.org/node/564340) asking for help and mcfilms suggested me to open an issue. Because it seems that everything is ok.

What i am trying to do is place a link inside a select field unique option. In other words the tipical " 'By clicking on I accept the Terms of Use and the Privacy Policy" resulting a link to the terms of use policy.

I tried this in 3 diff ways but none is working and everything seems to be ok.

1. By clicking on I accept the <a href="node/27">Terms of Use and the Privacy Policy</a>, Imput format as full html
2. By clicking on I accept the <a href="<?php print base_path();?>node/27">Terms of Use and the Privacy Policy</a> imput format as php,

With this 2 methods i get the followed text instead of the proper text:
"node/27">Terms-of-Use-and-the-Privacy-Policy-wrapper">  node/27">Terms-of-Use-and-the-Privacy-Policy">node/27">Terms of Use and the Privacy Policy]" id="edit-submitted-i-accept-By-clicking-on-I-accept-the-node/27">Terms-of-Use-and-the-Privacy-Policy" value="By clicking on I accept the Terms of Use and the Privacy Policy" class="form-checkbox" /> By clicking on I accept the Terms of Use and the Privacy Policy

3.

<?php
echo 'By clicking on I accept the '. l('Terms of Use and the Privacy Policy', "node/27");
?>
imput format as php, the field will not be shown.

I allso tried to add "I Accept" checkbox with the disclaimer and link in the help section below. but didnt worked either showing the line code into the help field.

Any idea about this??

Thanks

#1

quicksketch - November 6, 2009 - 02:18
Status:active» duplicate

This is not a bug, Webform does not allow you to use PHP values for select list options. See #151603: Can I put options in a select field from a database query?

 
 

Drupal is a registered trademark of Dries Buytaert.