Sportuojantys
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Show only 1 image and it’s phraseThank you (dublicated message occured)
- This reply was modified 2 weeks, 4 days ago by Sportuojantys.
- This reply was modified 2 weeks, 4 days ago by Sportuojantys.
Forum: Plugins
In reply to: [Calculated Fields Form] Show only 1 image and it’s phraseThank you ??
Forum: Plugins
In reply to: [Calculated Fields Form] Show only 1 image and it’s phraseCode is entered in calculated value: fieldname1
Results is in HTML content: fieldname5
Images are in: fieldname6 – fieldname84
I need to hide intro image fieldname6 after the click and show random image from fieldname7-84 (the code is not working only with hiding the intro image fieldname6)Forum: Plugins
In reply to: [Calculated Fields Form] Show only 1 image and it’s phraseHi, calcualtor is still not published, so I can’t show it, only 1 problem left.
Your solution worked perfectly fine, thanks!
Now the last little thing is that in the begging, until the button is clicked, the INTRO image (fieldname6) should be shown and after the click is made it should disappear and not show again, in instead of this image, new image and phrase is shown. I didn’t add the hide class to the INTRO image, but I added HIDEFIELD class to fieldname6 after the click, but it is still showing.
Maybe you know the reason?
Here is the code now:jQuery('#fbuilder').on('click', function() {
(function() {
var result = Math.floor(Math.random() * 78) + 1;
var phrases = [
"<strong>NAME1</strong><br>Description1.",
"<strong>NAME2</strong><br>Description2.",
// I will add all 78 phrases here, following the same structure
];
var phrase = phrases[result - 1];
jQuery('.result-here').html(phrase);
HIDEFIELD('fieldname6|n');
for (var i = 7; i <= 84; i++) {
HIDEFIELD('fieldname' + i + '|n');
}
return result;
})();
});Forum: Plugins
In reply to: [Calculated Fields Form] Sum to single numberThank you, codepeople, calculator is working fine ??
Forum: Plugins
In reply to: [Calculated Fields Form] Sum to single numberYes, this formula with years sum is working fine.
I tried this formula with all the date sum, but somethings wrong here?
(function(){
var result = SUM((fieldname12, fieldname8, fieldname11).toString().split(”));while(10 <= result) result = SUM((result).toString().split(”));
return result;
})()Forum: Plugins
In reply to: [Calculated Fields Form] Sum to single numberI tried with January (value is 1) 1st (value is 1), of 1991 (value is 1991), and the number is double digit: 22
Can we make it single digit? 2+2=4?
https://ibb.co/80qdfMX
And how does it look like with sum of YEARS number only (fieldname12) to a single digit?Thanks for your help ??
Forum: Plugins
In reply to: [Calculated Fields Form] Hours formatWow, thanks, it’s working fine! ??
Forum: Plugins
In reply to: [Calculated Fields Form] Add text row in the resultsUnderstood, thank you!
Forum: Plugins
In reply to: [Calculated Fields Form] Add text row in the resultsBTW, can you answer this one?
“And 2nd question is it possible that user enters his email in the CFF (I think it’s field “email”) and we got it saved inside WP?”Forum: Plugins
In reply to: [Calculated Fields Form] Add text row in the resultsAll good, thank you for the help codepeople ??
Forum: Plugins
In reply to: [Calculated Fields Form] Add text row in the resultsI think I found problem, it’s CONCATENATE, not CONCATENTATE ??
Forum: Plugins
In reply to: [Calculated Fields Form] Add text row in the resultsHello, this function is working (but answer box only shows last element):
(fieldname8=='M?lyna'?'Esate ?altas, i?tvermingas ir kiek grubesnio charakterio':(fieldname8=='Pilka'?'Esate ramaus būdo ir gan?tinai i?tvermingas':(fieldname8=='Ruda'?'PARA?YK RUDAAAAA':(fieldname8=='?alia'?'PARA?YK ?ALIAAAAAA':'RA?YK SKIRTINGOS AKYS')))), ' ', (fieldname3=='?viesi'?'RA?YK ?VIESI':(fieldname3=='Tamsi'?'RA?YK TAMSII':'RA?YK RAUDOOONNA')), ' ', (fieldname6=='Trumpi'?'RA?YK TRUMPIIII':(fieldname6=='Vidutinio ilgio'?'RA?YK VIDUTINIO ILGIOOO':'RA?YK ILGIIII')), ' ', (fieldname7=='Stori'?'RA?YK STORIII':(fieldname7=='Vidutinio storio'?'RA?YK VIDUTINIO STORIO':'RA?YK PLONIIII'));
Then I tried firstly the CONCATENTATE operation, so added only “CONCATENTATE(” and “);” and it didn’t work, maybe because there was not enough space in the answer box?:
CONCATENTATE(
(fieldname8==’M?lyna’?’Esate ?altas, i?tvermingas ir kiek grubesnio charakterio’:(fieldname8==’Pilka’?’Esate ramaus būdo ir gan?tinai i?tvermingas’:(fieldname8==’Ruda’?’PARA?YK RUDAAAAA’:(fieldname8==’?alia’?’PARA?YK ?ALIAAAAAA’:’RA?YK SKIRTINGOS AKYS’)))),
‘ ‘,
(fieldname3==’?viesi’?’RA?YK ?VIESI’:(fieldname3==’Tamsi’?’RA?YK TAMSII’:’RA?YK RAUDOOONNA’)),
‘ ‘,
(fieldname6==’Trumpi’?’RA?YK TRUMPIIII’:(fieldname6==’Vidutinio ilgio’?’RA?YK VIDUTINIO ILGIOOO’:’RA?YK ILGIIII’)),
‘ ‘,
(fieldname7==’Stori’?’RA?YK STORIII’:(fieldname7==’Vidutinio storio’?’RA?YK VIDUTINIO STORIO’:’RA?YK PLONIIII’))
);Then I tried adding HTML content field, with formula you said: <div class=”result-here”></div>; (this box is not visible in the calculator after i push the button) and the equation:
(function(){
var result = CONCATENTATE(
(fieldname8==’M?lyna’ ? ‘Esate ?altas, i?tvermingas ir kiek grubesnio charakterio’ : (fieldname8==’Pilka’ ? ‘Esate ramaus būdo ir gan?tinai i?tvermingas’ : (fieldname8==’Ruda’ ? ‘PARA?YK RUDAAAAA’:(fieldname8==’?alia’ ? ‘PARA?YK ?ALIAAAAAA’ : ‘RA?YK SKIRTINGOS AKYS’)))),
‘ ‘,
(fieldname3==’?viesi’ ? ‘?VIESūS RA?YK’ : (fieldname3==’Tamsi’ ? ‘TAMSUS RA?YK’ : ‘RAUDONII RA?Yk’)),
‘ ‘,
(fieldname6==’Trumpi’ ? ‘TRUMPI RA?YK’ : (fieldname6==’Vidutinio ilgio’ ? ‘VIDUTINIAI RA?YK’ : ‘ILGI RA?YK’)),
‘ ‘,
(fieldname7==’Stori’ ? ‘STORI RA?YK’ : (fieldname7==’Vidutinio storio’ ? ‘VIDUTINIAI RA?YK’ : ‘PLONI RA?YK’))
);jQuery(‘.result-here’).html(result);
return result;
})()As I see, it should be working but it’s not, I attached some pictures, maybe the problem is in other place?
https://ibb.co/7k5LW5V
https://ibb.co/0XPw6Qm
https://ibb.co/znZdVmb
https://ibb.co/THpLhFs- This reply was modified 2 years, 1 month ago by Sportuojantys.
Forum: Plugins
In reply to: [Calculated Fields Form] Google PageSpeed Insights problem with calculatorOh, understood, I hope this helps to fix the problem in Google’s eye ??
Thank you!!!
Keep up the good work ??- This reply was modified 2 years, 4 months ago by Sportuojantys.
Forum: Plugins
In reply to: [Calculated Fields Form] Google PageSpeed Insights problem with calculatorOh, now I’ve inserted your code into page, but I think the height of the calculator remained the same? ??