cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Variable placement of (Required) labels

Add a New Topic Reply to Post
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.

Add a New Topic Reply to Post


Reply to Topic: Variable placement of (Required) labels
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 2 + 1        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)