pexel
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Criterion ProblemHello;
If he selects more than one option then yes it works. But if the user selects only one criterion, it does not work.code 1
(function() { var kriter4 = ''; if( 1 < fieldname38|r.length ) { kriter4 = fieldname25 / 120; } else { kriter4 = 0; } jQuery('#calculation-kriter4').html(kriter4); jQuery('.kriter4-aciklama').html('Konut Rayi? : '); jQuery('.kriter4-sonuc').html(FORMAT(PREC(kriter4, 2), {groupingsymbol: ".", decimalsymbol: ","}) + ' TL'); return [kriter4]; })();
code 2
(function() { var kriter5 = ''; if( 1 < fieldname38|r.length ) { kriter5 = (fieldname29 / 240 + fieldname30); } else { kriter5 = 0; } jQuery('#calculation-kriter5').html(kriter5); jQuery('.kriter5-aciklama').html('Konut Rayi? + Kira : '); jQuery('.kriter5-sonuc').html(FORMAT(PREC(kriter5, 2), {groupingsymbol: ".", decimalsymbol: ","}) + ' TL'); return [kriter5]; })();
15 criteria continue in this way.
Forum: Plugins
In reply to: [Calculated Fields Form] Criterion ProblemI have one last question;
Yes, if we make more than one selection in the last code you sent, yes it works.But if the user selects 1, it doesn’t work..
How do we solve this equation? If the user selects 1, it doesn’t work, but if the user selects more than one, it works.
How should we update the code?
The code will work whether you select one or more than one.
Forum: Plugins
In reply to: [Calculated Fields Form] Criterion ProblemI thank you very much
Forum: Plugins
In reply to: [Calculated Fields Form] Criterion ProblemWhat will be the rule if many options are chosen, regardless of A, B, C, D?
Code 1
if (fieldname38|r.length === 1) { kriter4 = fieldname25 / 120; } else { kriter4 = 0; }
code 2
if (fieldname38|r.length === 1) { kriter5 = fieldname30 / 120; } else { kriter5 = 0; }
Forum: Plugins
In reply to: [Calculated Fields Form] Criterion ProblemI’m totally confused. It shouldn’t be too difficult.
I make calculations for each criterion.criterion1
criterion2
criterion3In the form… The only problem here is the calculation of whatever fieldname38 is selected, the criterion I wrote. It already calculates when I select a single criterion. It is not calculated when I select multiple criteria. I shared the address in my first post, you will understand if you examine it.
My only request is, if more than one variable is selected, how can I adapt it to the above criteria? It sets an example for everyone.
I don’t want to waste your time, but I’m very confused. If you show me the way, I will do the rest.
Thanks.Sample codes
(function() { var kriter4 = ''; if (fieldname38 === 'A') { kriter4 = fieldname25 / 120; } else { kriter4 = 0; } jQuery('#calculation-kriter4').html(kriter4); jQuery('.kriter4-aciklama').html('Konut Rayi? : '); jQuery('.kriter4-sonuc').html(FORMAT(PREC(kriter4, 2), {groupingsymbol: ".", decimalsymbol: ","}) + ' TL'); return [kriter4]; })();
- This reply was modified 11 months, 2 weeks ago by pexel.
Forum: Plugins
In reply to: [Calculated Fields Form] Criterion ProblemHow do I apply this to each criterion?
I wrote the calculation field for each criterion. Separate criteria that print results as criterion4 criterion5.
Can you correct the exact code below? Should I apply it to others?I don’t know what to select because the criteria fields are variable and the user will select them.
Thanks.(function() { var kriter4 = ''; var values = fieldname38|r, n = values.length; if(AND(IN('A', values), n == 1)) return 'Only A is selected'; if(AND(IN('B', values), n == 1)) return 'Only B is selected'; if(AND(IN('C', values), n == 1)) return 'Only A is selected'; if(AND(IN('D', values), n == 1)) return 'Only B is selected'; if(AND(IN('E', values), n == 1)) return 'Only A is selected'; if(AND(IN('F', values), n == 1)) return 'Only B is selected'; if(AND(IN('G', values), n == 1)) return 'Only A is selected'; if(AND(IN('H', values), n == 1)) return 'Only A is selected'; if(AND(IN('K', values), n == 1)) return 'Only B is selected'; if(AND(IN('L', values), n == 1)) return 'Only B is selected'; if(AND(IN('A', values), IN('B', values), IN('C', values), IN('D', values), IN('E', values), IN('F', values), IN('G', values), IN('H', values), IN('K', values), IN('L', values))) return 'A and B are selected'; if (fieldname38 === 'A') { kriter4 = fieldname25 / 120; } else { kriter4 = 0; } jQuery('#calculation-kriter4').html(kriter4); jQuery('.kriter4-aciklama').html('Konut Rayi? Bedeli : '); jQuery('.kriter4-sonuc').html(FORMAT(PREC(kriter4, 2), {groupingsymbol: ".", decimalsymbol: ","}) + ' TL'); return [kriter4]; })();
or Do we need to add such an additional criterion?
(function(){ var values = fieldname38|r, n = values.length; if(AND(IN('A', values), n == 1)) return 'Only A is selected'; if(AND(IN('B', values), n == 1)) return 'Only B is selected'; if(AND(IN('C', values), n == 1)) return 'Only A is selected'; if(AND(IN('D', values), n == 1)) return 'Only B is selected'; if(AND(IN('E', values), n == 1)) return 'Only A is selected'; if(AND(IN('F', values), n == 1)) return 'Only B is selected'; if(AND(IN('G', values), n == 1)) return 'Only A is selected'; if(AND(IN('H', values), n == 1)) return 'Only A is selected'; if(AND(IN('K', values), n == 1)) return 'Only B is selected'; if(AND(IN('L', values), n == 1)) return 'Only B is selected'; if(AND(IN('A', values), IN('B', values), IN('C', values), IN('D', values), IN('E', values), IN('F', values), IN('G', values), IN('H', values), IN('K', values), IN('L', values))) return 'A and B are selected'; })()
Forum: Plugins
In reply to: [Calculated Fields Form] Height problemMy real question was, what will we experience negatively if we open this to robots?
Forum: Plugins
In reply to: [Calculated Fields Form] Height problemPages with the cff-form-id extension have their meta no-index from robots. We share these pages as iframes.
What happens if we open these pages to robots? After all, there are sites that use the forms we have prepared.
Wouldn’t it be better to be open for both backlinks and Google?
- This reply was modified 11 months, 3 weeks ago by pexel.
Forum: Plugins
In reply to: [Calculated Fields Form] Amp websiteThanks
- This reply was modified 12 months ago by pexel.
Forum: Plugins
In reply to: [Calculated Fields Form] Color DetailI understand what you mean, it was successful. It was exactly what I was looking for. Now the HEX code is working. If we can get the RGB code with the same logic, my problem will be completely solved.
Thanks a lot.Forum: Plugins
In reply to: [Calculated Fields Form] Color DetailYes, when you select the color code, it gives the HEX code. Can we get the RGB code in the same way?
And finally, if the user enters a hex value, will the color change directly?
Thanks a lot.Forum: Plugins
In reply to: [Calculated Fields Form] Height problemFirst of all, I admire your patience, you really answer patiently. Don’t get me wrong, I really didn’t understand what you wrote last time.
I never understood the part where the information is written in the expression tag when the form is submitted.
Let me explain it simply, I did what you said and when you say calculate, it comes up on the site that uses iframe (iframe site address).
At this stage, this data is meaningless since I cannot collect it.
I wanted to learn this.
For example, on the site that added IFRAME, my form was run 100 times per day. Is there an additional plug-in method where I can see that your form has been analyzed 100 times on this site? Or will the form work on the other side as a ghost?
Thanks.
Note: Since there is a language problem, I cannot understand the exact meanings, this is my problem, I’m sorry.Forum: Plugins
In reply to: [Calculated Fields Form] Height problemI understand..
For example, I added the code and when the other party says calculate, it gets the URL address. But since the calculated field cannot collect URL data, it is meaningless.So in summary, even if the iframe I gave as the source site works on the opposite site, it has no meaning since the field data I added is not collected.
I hope I didn’t misunderstand. But still, thank you for your interest. I wish there was a method.
Forum: Plugins
In reply to: [Calculated Fields Form] Height problemHello, I added a field as you said.
When the other site (the site using iframe) presses the calculate button, it calculates the “address of the site”.
As the main site, I could not understand this part of how to analyze this data.
Forum: Plugins
In reply to: [Calculated Fields Form] Height problemCould you please show the answer to question C with a visual?
What will be the return to us in this way? I didn’t fully understand, thank you very much