Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter plbenson

    (@plbenson)

    Also, is there a way to force an email & name before the calculations will so (the results)?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want that user type the email and name before calculate the results, you should implement your equation following the following principles. For this demo I will suppose that the email field is fieldname1, and the name field is the fieldname2, so, the equation would be:

    (function(){
    if(!/^\s*$/.test(fieldname2) && /[^@]+@.+/.test(fieldname1)){
    // the rest of code here with the equation return
    }
    })()

    Note: The regular expression used to validate the email address could be more strict.

    Best regards.

    Thread Starter plbenson

    (@plbenson)

    Thank you!

    So – how do I format the Field Headings?

    I’d love to format the field headings —

    Like having a H2 for the ‘Name’ ‘Email’ and on?

    http://www.ssyh.com/industry-solutions/distribution/

    (we are updating the page to have better graphics / text / and an email optin)

    Thank you.

    https://ww.wp.xz.cn/plugins/calculated-fields-form/

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The headings of fields can be formatted through the styles definition. You only should paste the following code in any of the style files on your website:

    #fbuilder .fields label{ font-size:1.5em;}

    Note: Use the styles definition you prefer for the headings.

    Best regards.

    Thread Starter plbenson

    (@plbenson)

    Perfect!

    What is the CSS to make the copy:

    1. Bold
    2. Color like RED

    Thread Starter plbenson

    (@plbenson)

    **
    1. (Does the client need to upgrade to have the email function?)

    2. Where exactly would I add this:

    (function(){
    if(!/^\s*$/.test(fieldname2) && /[^@]+@.+/.test(fieldname1)){
    // the rest of code here with the equation return
    }
    })()

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want change the styles of the fields labels, you only should edit the stylepublic.css file, located in “/wp-content/plugins/calculated-fields-form/css/stylepublic.css”. Pasting the following code at the end of file:

    #fbuilder label:first-child{color:red;font-weight:bold;}

    About the email’s feature, it is available only in the premium and developer versions.

    The code I sent you in a previous entry should be associated to a calculated field, but you should set the rest of the equation’s code.

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Formatting Field Headers’ is closed to new replies.