• Resolved wayneoz

    (@wayneoz)


    Hi,
    I have at the moment the Free version installed.
    I have a Field where my Customer can enter the Text in the Box.
    I want to be able to show the text they enter using different FONTS, depending on what they have chosen.

    ie: If they choose Font Arial Bold, then I want to Show the Text they typed in the box as Arial Bold

    Is this possible?

    I am wanting to produce the SAME result for the Colour selection. ie: change the text they type to Red, if they select Red etc.

    Regards,
    Wayne

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @wayneoz

    The process requires the use of jQuery.

    Assign to the field, whose properties you want to modify dynamically, a custom class name, for example: my-special-field

    And now, assuming that the field for the font-family is the fieldname1, the field for the color the fieldname2 and the field for the font-size the fieldname3, you can use, as part of the equation associated to a calculated field, the following piece of code:

    
    (function(){
    jQuery('.my-special-field input').css({fontFamily:fieldname1, color: fieldname2, fontSize: fieldname3});
    })()
    

    Now you simply should to adjust the previous code to the names of fields in your form.

    Best regards.

    Thread Starter wayneoz

    (@wayneoz)

    Hi Thanks for your Help, but being a complete novice – You have lost me.

    The field is a Text Area Field.I have no idea how to Assign a custom class name to it, as I cannot see this anywhere in the Field settings.

    Wayne

    Plugin Author codepeople

    (@codepeople)

    Hello @wayneoz

    The class names are assigned to the fields through their attributes: “Add CSS Layout Keywords”, so, you simply should select the field in the form and enter the text:

    my-special-field

    into this attribute.

    As this is textarea, the code to associate to the calculated field should be modified a little, because in this case the field does not include an input tag, it uses a textarea tag:

    
    (function(){
    jQuery('.my-special-field textarea').css({fontFamily:fieldname1, color: fieldname2, fontSize: fieldname3});
    })()
    

    and that’s all.
    Best regards.

    Thread Starter wayneoz

    (@wayneoz)

    Thank you!
    I have it changing SIZE and Colour.

    But I am unsure about the Font. I was just using images as an example.

    But if I want the text to change to the Font selected I will have to upload the Font won’t I !

    How should this be done! and how to I call it?

    Your Generosity in offering me a solution is very welcomed. Thank you so much!!!

    Wayne

    Thread Starter wayneoz

    (@wayneoz)

    I will do! and Thank you HEAPS for your Kind Support.

    Regards,
    Wayne

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Text to show a selected font on Screen as the Text Typed’ is closed to new replies.