Home › Forums › Quform WordPress › display text in HTML
- This topic has 8 replies, 2 voices, and was last updated 3 years, 11 months ago by Ally.
- AuthorPosts
- April 28, 2020 at 11:54 am #31042artsolvingParticipant
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
April 29, 2020 at 11:16 am #31048AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 29, 2020 at 2:26 pm #31050artsolvingParticipanthi,
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.April 30, 2020 at 10:27 am #31060AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 30, 2020 at 11:14 am #31067artsolvingParticipantgreat seems working fine.
maybe you know to hide this tabs ?
tnx
Attachments:
You must be logged in to view attached files.May 4, 2020 at 10:51 am #31090AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 12, 2020 at 11:53 am #31158artsolvingParticipanthi,
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.May 12, 2020 at 2:22 pm #31160artsolvingParticipantalso 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 3 years, 11 months ago by artsolving. Reason: addition
May 14, 2020 at 8:01 am #31172AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.