Forum Replies Created
- AuthorPosts
MOVOX
ParticipantHi Ally,
Can I send you a link to the form via the feedback field below?
MOVOX
ParticipantHi Ally,
I’m not sure that your response is the cause of the problem… In the radio button section of the form where the value is selected both the icon and the label are being displayed in a box which is 120px x 120px. The label is displayed over the image as I have applied the following CSS in Radio button element settings:
width: 120px;
height: 120px;
border: 1px solid #00ccff;
background-position: centre centre;
border-radius: 4px;
background-repeat: no-repeat;
background-color: #ffffff;
text-align: center;
font-size: 9pt;
line-height: 32pt;
color: #000044;
padding-top: 80px;In the field where the values are to be displayed the box is 75px x 75px and I have applied the following CSS to the Outer Wrapper. I have also increased and decreased the top padding and line height several times to see if the text or part of the text would appear, but it doesn’t.
width: 75px;
height: 75px;
border: 1px solid #00ccff;
background-position: centre centre;
border-radius: 4px;
background-repeat: no-repeat;
background-color: #ffffff;
padding-top: 0px;
text-align: center;
font-size: 8pt;
line-height: 25px;
color: #000044;MOVOX
ParticipantHi Ally,
I have been able to find a solution to off-canvas sidebars by implementing the plugin called “Off-canvas Sidebars” and using their short code as a HTML button within my Quform form.
June 1, 2022 at 4:26 pm in reply to: Moving groups, fields and other elements to another page #34327MOVOX
ParticipantAlly,
I tried both your suggestions without any luck. However, I have found another solution that worded for me.
I added a blank column on page 1 and from page 2 dragged the element so my cursor was pointing to the Page 1 tab heading text (which changes to yellow when selected), then waited for the elements to appear in page 1 and released the element into the blank column.
Previously I had been dragging the element and releasing it whilst pointing at the page 1 tab heading.
MOVOX
ParticipantHi Ally,
I’ve added a new tag in the HTML element and changed the code as suggested. The image is displaying OK but the Label isn’t displayed.
The HTML looks like:
<span id=”stage-value”></span>
<span id=”stage-value-text”></span>And the JS code looks like (please note that I’ve used a false URL for the image.):
$(‘.quform-field-10_167’).click(function() {
var value = $(this).val(),
url;if (value === ‘Option 1’) {
url = ‘https://abc.com/wp-content/uploads/2019/04/concept_000044.png’;
} else if (value === ‘Option 2’) {
url = ‘https://abc.com/wp-content/uploads/2019/04/startup_000044-1.png’;
} else if (value === ‘Option 3’) {
url = ‘https://abc.com/wp-content/uploads/2019/04/growth_000044.png’;
} else if (value === ‘Option 4’) {
url = ‘https://abc.com/wp-content/uploads/2019/04/presentation_000044.png’;
} else if (value === ‘Option 5’) {
url = ‘https://abc.com/wp-content/uploads/2019/04/expand_000044.png’;
}if (url) {
$(‘#stage-value’).html($(‘‘).attr(‘src’, url));
} else {
$(‘#stage-value’).html(”);
}$(‘#stage-value-text’).text($(this).closest(‘.quform-option’).find(‘.quform-option-text’).text());
});
});MOVOX
ParticipantHi Ally,
I removed all conditional logic and then re-applied. Seems to be working now so this was probably an error on my part.
MOVOX
ParticipantHi Ally,
Yes, this makes sense. I have updated the unique ID’s and image URL’s in my code as per your instructions and the radio button image is displayed.
However, then radio button label is now missing. I tried using the code below but this didn’t work.
if (url) {
$(‘#stage-value’).html($(‘‘).attr(‘src’, url));
} else {
$(‘#stage-value’).html(”).text($(this).closest(‘.quform-option’).find(‘.quform-option-text’).text());
}
});
});MOVOX
ParticipantHi Ally,
I have followed the instructions in the “Adding a form data preview page” guide.
For my requirements the code works OK for displaying the content of text fields. However, my form has radio buttons which include an image URL in the radio button option settings selected and unselected fields.
The suggested code for radio buttons is displaying the selected radio button value but it is not displaying the image related to the radio button selection.
Is there a fix to display the radio button image?
MOVOX
ParticipantThanks Ally, your new code works perfectly when displaying the character counter on multiple text area fields.
MOVOX
ParticipantAlly,
Thank you, I added the code above and the button style has now changed and I can edit to suit.
MOVOX
ParticipantI would like to style the save and complete button like the “next” button without the arrow icon and with a grey background. See attached image.
Attachments:
You must be logged in to view attached files.MOVOX
ParticipantHi Ally,
If I didn’t use the Essential Addons plugin and used the standard WordPress sidebars and Widgets what would be the JavaScript code to toggle or show / hide each sidebar?
MOVOX
ParticipantHi Ally,
Thank you removing the script tag fixed the problem.
MOVOX
ParticipantHi Ally,
I not the error you have indicated in your response and I have removed the commas. However, this code relates to code for a slider, not the conditional logic problem related to this topic.
MOVOX
ParticipantHi Ally,
I have added the revised code and this has fixed the problem. Thank you for your help.
Rohan
- AuthorPosts