Jump to:
| Project: | Webform |
| Version: | 6.x-2.7 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
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");
?>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
Comments
#1
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?