Sportuojantys
Forum Replies Created
-
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 3 years, 8 months 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 3 years, 11 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? đ
Forum: Plugins
In reply to: [Calculated Fields Form] Google PageSpeed Insights problem with calculatorLike this? đ
https://ibb.co/306bhfq