This forum requires Javascript to be enabled for posting content
Search
Select Forum
Announcements
Troubleshooting
Feature Requests
CSS Styling and Layout
Show and Tell
New/Recently Updated Topics
No tracking tab
CC Option for User e-mail is blank
Comment does not display
Automation?
Widget Title formatting?
FireFox/Safari Submit button does n...
fatal error
Don't show #usermessagea in URL
Tracking problem
Need to add additional parameter to...
cforms-captcha.php
Paypal integration
Generate PDF?
random in a multipart form
Customizing CSS for Form ... Having...
Post
Rich - Guest
4:38 am - August 13, 2008
Please replace the ??? with your data!
[desc]: Hi. I think you've done a great job with this plugin and I've got a real easy request for you.
I happen to prefer to place the 'required' label inline with the input field labels. No big deal. I just move
### adding "required" text if needed if($field_emailcheck == 1) $content .= '<span class="emailreqtxt">'.stripslashes(get_option('cforms'.$no.'_emailrequired')).'</span>'; else if($field_required == 1 && $field_type <> 'checkbox') $content .= '<span class="reqtxt">'.stripslashes(get_option('cforms'.$no.'_required')).'</span>'; if ( $fieldvalue=='' && $defaultvalue<>'' ) ### if not reloaded (due to err) then use default values $fieldvalue=$defaultvalue;
to cforms.php, line 412.
Unfortunately, I have to do this with every upgrade of your plugin. Perhaps you could throw in an option to allow for variable placement of the 'required' remarks.
Thanks!
Oliver
- Admin
7:28 am - August 13, 2008
posts 3562
right, but since you're editing cforms.php anyway, it's just a minor additional task... ;-)
Rich - Guest
7:44 pm - August 13, 2008
Heh. Right on. I should have seen that coming.
Thanks again for the great plugin.
Reply to Topic: Variable placement of (Required) labels
PLEASE READ THE FAQs FIRST! THANK YOU.