display text in HTML

Home Forums Quform WordPress display text in HTML

This topic is: not resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #31042
    artsolving
    Participant

    hi,
    referring to duplicate text field in documentation, how can display to the user the input submitted ?
    giving an id to the quform field that contain the duplicate display only the first field:

    jQuery(function ($) {

    $(‘.quform-field-1_x’).blur(function () {
    $(‘#id’).text($(this).val());

    });

    });

    tnx

    #31048
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #31050
    artsolving
    Participant

    hi,
    tnx but finded an issue related my form, maybe not…

    want to display to the user the input from a textarea. but the result is always a word next to other so nothing about formatting input as paragraph created, spacer, etc. (so thinking use the duplicate field but not so comfortable for other purpose)

    so I use the editor option for the field but what I input do not appear in the front end. maybe I must use an id that’s not the id field ?
    supposing that’s work for me (relating to obtain the same formatting input from editor to the result displayed for the user) and if you are in touch with plugin TinyMCE editor what about using this setting instead of the classic wp editor to show the content inside ?

    demo page: https://viewroom.altervista.org

    tnx

    Attachments:
    You must be logged in to view attached files.
    #31060
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #31067
    artsolving
    Participant

    great seems working fine.

    maybe you know to hide this tabs ?

    tnx

    Attachments:
    You must be logged in to view attached files.
    #31090
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #31158
    artsolving
    Participant

    hi,
    tnx for support.
    however I added a function to display an inline editor for a div element.

    jQuery(function ($) {

    tinymce.init({
    selector: ‘div#prova’,
    inline: true
    });

    });

    it open as in image but it works only if I put in the form a textarea with editor enabled.

    1) i want only div element in the form its possible ?
    2) also I try to display the div content in mail notification and nothing appear if I digit some text inside.

    use:

    jQuery(function ($) {

    $(‘#prova’).html(tinymce.inlineEditor.getContent());
    $(‘#prova’).html($(this).val());

    });

    but not work.

    some tips ?

    tnx

    Attachments:
    You must be logged in to view attached files.
    #31160
    artsolving
    Participant

    also how do if I want to add another textarea in the form.

    standard code:

    jQuery(function ($) {

    tinymce.on(‘AddEditor’, function () {
    tinymce.activeEditor.on(‘init change keyup blur’, function () {
    $(‘#another-id’).html(tinymce.activeEditor.getContent());
    });

    $(tinymce.activeEditor.getElement()).on(‘key up blur’, function () {
    $(‘#another-id’).html($(this).val());
    });
    });
    })

    tnx a lot

    • This reply was modified 2 months ago by artsolving. Reason: addition
    #31172
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy