marekurban
Forum Replies Created
-
Yes, perfect, it works finally! Thank you very much!
What do you mean? I inserted the code exactly as you instructed, I am sending a printscreen as proof. https://drive.google.com/file/d/1Ga-ziU6fSAilf92vEHbMfSla_LMOl2A-/view?usp=sharing
We’re talking about this calculator: [CP_CALCULATED_FIELDS id=”7″]
You can find it here: https://propojuj.aonity.cz/Thanks a lot! I pasted the code according to your instructions, but still no change happened 🙁 Could it be a problem in the plugin settings?
I removed the code because it caused the page to crash every time and thus I wouldn’t have a way to show it to you.
However, would it be possible to at least somehow easily set the slider to show the value of 10 000 000 CZK when the calculator is first loaded, which is the middle value of the predefined service from the selection that will be shown after the calculator is loaded?
I want the calculator to show at least some value when it is first loaded and not show zero.
Thanks a lot!
Thanks for the answer. I have added the data below to your equation, pasted it into the Calculated Field, but after running the whole plugin crashes and crashes. So how exactly can I please apply this to make everything work? What do the Slider settings need to be?
(function(){
let value;
if(fieldname2 == “Hypotéka”) value = 4000000;
if(fieldname2 == “Spotřebitelský úvěr”) value = 6000000;
if(fieldname2 == “Podnikatelský úvěr”) value = 8000000;
if(fieldname2 == “Úvěr ze stavebního spoření”) value = 10000000;getField(fieldname18|n).setVal(value);
})()I am sending you my current situation in the picture. The customer clicks on the service on the right side. An image of the relevant service will be displayed on the left side (it is a different form and the image will be displayed using the HTML content and the function we recommended to me above). I need to set up image display as follows:
For example, if someone clicks “MENŠÍ REKONSTRUKCE”, the image assigned to the “MENŠÍ REKONSTRUKCE” service will be displayed. If I also click on the “ODOSOBNĚNÍ” service, I will only see an image of the “ODOSOBNĚNÍ” service on the left side (all images are displayed in the same place). If I now uncheck the “ODOSOBNĚNÍ” service, a picture of the current remaining checked service will appear on the left side (in our case “MENŠÍ REKONSTRUKCE”). Can you please advise me how to set this correctly in the function?https://vcelarstvi.aonity.cz/wp-content/uploads/2022/06/Snímek-obrazovky-2022-06-22-v-22.14.39.png
- This reply was modified 3 years, 11 months ago by marekurban.
- This reply was modified 3 years, 11 months ago by marekurban.
We didn’t understand here, but I believe I can handle it on my own. However, if I go back to your previous answer – I need to add the following to the function – if I check option A (img1 is displayed), then option B (img2 is displayed). If I uncheck option B now, I must keep the image from option A (img1) displayed. Can you please help me with this setting? Then maybe it should be complete. Thank you very much!
<div class="images-container"></div> <script> jQuery(document).on('click', '[id*="fieldname1_"]', function(){ var f = jQuery(this), v = f.is(':checked') ? f.val() : jQuery('[id*="fieldname1_"]:checked:last').val(), img = ''; if(v == 'A') img = '<img src="https://www.yourwebsite.com/images-path/image1.jpg">'; if(v == 'B') img = '<img src="https://www.yourwebsite.com/images-path/image2.jpg">'; if(v == 'C') img = '<img src="https://www.yourwebsite.com/images-path/image3.jpg">'; jQuery('.images-container').html(img); }); </script>Thank you so much for the answer, it already works for me! So would it be possible to display “before / after slider” using an abbreviated code instead of an image?
- This reply was modified 3 years, 11 months ago by marekurban.
And there was another problem – if I click option A, the image img1 will be displayed. If I also click option B, only the image img2 will be displayed instead of img1. That’s exactly what I need so far. If I now click on option B again (and thus remove it from the selection), I will be shown the image img1 (from option A) – this is also fine. The problem occurs in the opposite case, when I click option B first and then option A – the image img1 for option A no longer appears here, but only the image img2 of option B remains at all times.
So can we somehow set the image to always show the last clicked service? So that when I click on option B – img2 is displayed and when I then click on option A – img1 is displayed.
Thank you very much for your answer! Can we also display the content “before / after” slider using the HTML field, which takes the form of writing abbreviated code such as [twenty20 img1 = “10495” img2 = “10494” offset = “0.5”]?
Forum: Plugins
In reply to: [Calculated Fields Form] Slider editing and communication with others fieldsThanks, I’ll take a look! I also wanted to ask if there is any “restriction” in the plugin, how many operations and fields can it contain to keep everything running smoothly? Can the plugin handle 30 calculated fields with different interconnections? Thanks!
Forum: Plugins
In reply to: [Calculated Fields Form] Slider editing and communication with others fieldsThank you very much! This will probably be it. Have you ever encountered the plugin crashing your entire site and having to delete the site, reload the wordpress, and upload the site backup? It’s happened to me twice in a row. I have a fairly large calculator, but I still think it should be fine. There is reportedly no error on the part of the server provider, and when I deleted the plugin via FTP, the website started up again. So it is clear that the error will be somewhere in the plugin. Can you imagine what I could fix or do otherwise so that the plugin still doesn’t crash the web?
Forum: Plugins
In reply to: [Calculated Fields Form] Slider editing and communication with others fieldsThank you, but we probably don’t understand. How do I enter the calculated field value in the Min and Max Corner captions values. Because the maximum value depends on other fields. Is it enough to write something like “fieldname123” in the Max Corner Caption field? Nothing like that works for me, but maybe I’m using the wrong combination
Forum: Plugins
In reply to: [Calculated Fields Form] Slider editing and communication with others fieldsI am sorry, here it is: https://drive.google.com/file/d/1DwYfEUBppqq1M4XM6Jj9SS0JYVd2CICh/view?usp=sharing
Forum: Plugins
In reply to: [Calculated Fields Form] Slider editing and communication with others fieldsThank you very much, but I need to display the min and max values as shown in the picture file:///Users/marekurban/Desktop/Sni%CC%81mek%20obrazovky%202021-07-13%20v%C2%A012.48.47.png . Is it possible?