• Resolved sitetouten1

    (@sitetouten1)


    Hi,
    1- i would like adapt the size of textaera ds and have the same configuration as instruct.text (fcomments)

    it’s possible ?

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

    (@codepeople)

    Hello @sitetouten1

    The Textarea fields include the same attribute: “Field Size” than other fields in the form, where you can select one of the options: small, medium or large

    However, if you want to apply to the textarea fields a specific size, you can define some styles through the “Customize Form Design” attribute in the “Form Settings” tab (https://cff.dwbooster.com/images/documentation/form-settings-tab.png). For example:

    
    #fbuilder .cff-textarea-field textarea{width: 80% !important;}
    

    The list of class names associated with the forms’ elements, and the fields’ components, are available in the post of the plugin’s blog:

    https://cff.dwbooster.com/blog/2020/01/12/form-design

    Best regards.

    Thread Starter sitetouten1

    (@sitetouten1)

    thank you for your quick response and for the work on this great pluging of which I have the developer version

    I wanted to recover in the form of the text of my posts
    then i will want to use the textarea area for that
    but it does not automatically adapt to the text
    how to make it adapt automatically to the length of the text
    (as does the fcomment area)
    (there are no fcommentds fields (damage))

    Plugin Author codepeople

    (@codepeople)

    Hello @sitetouten1

    I’m sorry, but I’m not sure the reason why to use a textarea field and not an “HTML Content” field. I’ll try to describe the process with a hypothetical example:

    Assuming there is a calculated field in the form with the equation: fieldname1+fieldname2 and you want to display the result into an “HTML Content” field.

    1. Enter a DIV tag into the content of the “HTML Content” field with an unique class name. For example: <div class="result-here"></div>

    2. Edit the equation associated to the calculated field as follows:

    
    (function(){
    var result = fieldname1+fieldname2;
    jQuery('.result-here').html(result);
    return result;
    })()
    

    3. Finally, as the calculated field is being used as auxiliary, you can hide it by ticking a checkbox in its settings.

    Best regards.

    Thread Starter sitetouten1

    (@sitetouten1)

    ok
    here is my ccf
    https://pat.sophrologue17000.com/uncategorized/test-ccf/

    all results are at end
    they are in list form and put in (comments)
    it’s ok for consultation by tablette or phone

    but now the table in base (Table: wp_cp_calculated_fields_form_revision) is slow (other formulaire)

    i would like use the textareads with posts
    but display is not good
    (fcomment is good display)

    how read the result immedialty (like now)
    and use textareaDS
    with another display (like comments)

    Plugin Author codepeople

    (@codepeople)

    Hello @sitetouten1

    The process is the same I described previously, with the “HTML Content” field, but the equation associated with the calculated field would use the “Textarea DS” field.

    For example, assuming the “Textarea DS” field is the fieldname1, the equation associated with the calculated field would be:

    
    jQuery('.result-here').html(fieldname1);
    

    And that’s all.

    Best regards.

    Thread Starter sitetouten1

    (@sitetouten1)

    where i Edit the equation associated to the calculated field ?

    Plugin Author codepeople

    (@codepeople)

    Hello @sitetouten1

    The equations are entered through the “Set Equation” attribute in the settings of calculated fields.

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘adapt the size of’ is closed to new replies.