Hello @modula,
The Calculated Fields are input tags, HTML does not allow to include multiline texts on input tags.
The solution in this case would be display the result in another field, for example, a “HTML Content” field. Please, follow the steps below (your calculated field is the fieldname28):
1. Select the fieldname28 field and tick the checkbox: “Hide Field From Public Page” in its properties.
2. Insert a “HTML Content” field in the form with the following piece of code as its content:
<div class="result-container"></div>
<script>
jQuery(document).on('change','[id*="fieldname28_"]',function(){
jQuery('.result-container').html(this.value);
});
</script>
and that’s all.
Best regards.
Thread Starter
smemma
(@modula)
Hi @codepeople, thanks for getting back to me so quickly. I can’t see an option to insert an HTML content container; and my plugin isn’t showing any option to update…what am I missing please?!
Also, fieldname28 isn’t the only field that’s an issue; there’s also fieldname13 and fieldname14…
Thanks
Hello,
The “HTML Content” field is a control similar to the: “Single Line Text”, “Number”, “Currency”, etc.
If you are using outdated version of the plugin you can insert an “Instruct. Text” field, and enter the previous piece of code as its label, furthermore, you should insert a different “Instruct. Text” field for each calculated field with the corresponding code.
Best regards.
Thread Starter
smemma
(@modula)
Thanks again for a swift reply! I’ve tried adding an Instruct Text field and adding the above code into the label but it just does nothing; once saved, it reverts back to its default label and contents?!
Hello,
Please, after entering the content in the field’s attribute set the focus in another attribute of the field for triggering the onchange event. In the latest versions of the plugin this is unnecessary because the form’s structure is updated in the keyup event.
If you’ve installed the free version of the plugin, you should be receiving the update notifications directly in your WordPress.
However, if you have installed any other of plugin versions you can use your personal download link to get and install the latest update, or regiter your copy of the plugin to get the update notifications directly in your WordPress.
If you have lost your download link, please, create a ticket in my private website:
http://cff.dwbooster.com/contact-us
Best regards.