Forum Replies Created

Viewing 15 replies - 91 through 105 (of 144 total)
  • Thread Starter klingbeil

    (@klingbeil)

    Hello,
    I print the result as a date as much as the value entered on the code at the bottom.
    For example, the user chose the date : 21/05/2023 and wrote 5 days on it.
    Date : fieldname17
    Value : fieldname27

    My question is; I am now printing the date as much as the entered value, but how do I print 12 times forward in the same way?

    Example :
    1st value 21/05/2023
    2nd value 26/05/2023
    3rd value 31/05/2023

    I want to calculate the result of 12 values as the value written in the form forward.
    Thanks.

    (function(){
    var adetsure = GETDATETIMESTRING(DATETIMESUM(fieldname17, 'dd/mm/yyyy', fieldname27, 'd'), 'dd/mm/yyyy');
    jQuery('#calculation-adetsure').html(adetsure);
    return adetsure;
    })()
    Thread Starter klingbeil

    (@klingbeil)

    ok i got it thanks a lot

    • This reply was modified 1 year, 6 months ago by klingbeil.
    Thread Starter klingbeil

    (@klingbeil)

    I pressed the update button

    The red warning is still there, do we need to do anything else?

    Thread Starter klingbeil

    (@klingbeil)

    Hello. I am adding and subtracting time by entering the year month day week value on the date. There is no problem with the calculation process. But I am trying to print the numbers entered by the user on the time:result screen. For example: If the user entered 1 Year 4 Weeks Duration : Side by side 1 Year 4 Weeks will be written in this field. If he fills and empties one of these fields while calculating again, it will write the current value again. How to do this, I’ve been struggling since morning.

    Link:

    var result = '';
    var eklenensure = '';
    
    if (fieldname19) {
      eklenensure = fieldname19;
      result += eklenensure + ' Y?l';
    }
    
    if (fieldname20) {
      eklenensure = fieldname20;
      if (result !== '') {
        result += ' ';
      }
      result += eklenensure + ' Ay';
    }
    
    if (fieldname21) {
      eklenensure = fieldname21;
      if (result !== '') {
        result += ' ';
      }
      result += eklenensure + ' Hafta';
    }
    
    if (fieldname22) {
      eklenensure = fieldname22;
      if (result !== '') {
        result += ' ';
      }
      result += eklenensure + ' Gün';
    }
    
    // Güncel de?erleri hesaplamak i?in s?f?rlama yap
    jQuery('#fieldname19').val('');
    jQuery('#fieldname20').val('');
    jQuery('#fieldname21').val('');
    jQuery('#fieldname22').val('');
    
    if (result.trim() === '') {
      jQuery('#calculation-eklenensure').empty().hide();
    } else {
      jQuery('#calculation-eklenensure').html(result).show();
    }
    
    return eklenensure;
    
    Thread Starter klingbeil

    (@klingbeil)

    Thread Starter klingbeil

    (@klingbeil)

    Hello,
    I did as you said and added the number to be collected at the end, this time it didn’t add it on the date, it just wrote it next to it.

    01/11/20235

    01/11/2023(5)

        if (fieldname14 == 'A') {
            bedelliterhistarihi = CDATE((fieldname23 + 5), 'dd/mm/yyyy');
            jQuery('#calculation-bedelliterhistarihi').html(bedelliterhistarihi);
            jQuery('.askerlikterhistarihi-tanim').html('Resmi Terhis Tarihi :');
            jQuery('.askerlikterhistarihi-sonuc').html(bedelliterhistarihi);
    		return bedelliterhistarihi;
        }
    Thread Starter klingbeil

    (@klingbeil)

    Thank you

    Thread Starter klingbeil

    (@klingbeil)

    Hello,
    Can we expand this code?
    800px on mobile, 500px on desktop…
    In some of our forms, while the query takes up less space on the desktop, it creates a problem because it comes together on mobile.

    .cff-form{min-height:850px;}
    Thread Starter klingbeil

    (@klingbeil)

    The code below is working now ?? I was very happy.
    The only problem is how do I do the clear function?
    Thanks a lot, great plugin.

    (function(){
      var dikalanhesaplama;
        if (fieldname14 == 'A') {
        dikalanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
        jQuery('#calculation-dikalanhesaplama').html(dikalanhesaplama + ' cm2');
        jQuery('.my-text').html('Dikd?rtgen Alan? :');
        jQuery('.my-sonuc').html(dikalanhesaplama + ' cm2');
      }
      return [dikalanhesaplama];
    })();
    Thread Starter klingbeil

    (@klingbeil)

    hi, i solved it.
    jQuery(‘.my-result’).html(square calculation+’ cm2′);
    I also fixed it by adding it, thank you for your time.

    Thread Starter klingbeil

    (@klingbeil)

    You’re a little confused, let me clear it up.

    The code at the bottom multiplies 2 fields and writes the result.

    dikalanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
    karealanhesaplama = PREC(fieldname1 * fieldname2, 2, true);

    I get these results if the fieldname criterion is A

    (function(){
      var dikalanhesaplama = 0;
      var karealanhesaplama = 0;
        if (fieldname14 == 'A') {
        dikalanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
        jQuery('#calculation-dikalanhesaplama').html(dikalanhesaplama + ' cm2');
    	jQuery('.my-text').html('Dikd?rtgen Alan? :');
      }
      if (fieldname14 == 'B') {
        kareaanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
        jQuery('#calculation-kareaanhesaplama').html(kareaanhesaplama + ' cm2');
    	jQuery('.my-text').html('Kare Alan? :');
      }
      jQuery('.mobile-sonuc').html(CONCATENATE(dikalanhesaplama, ',', kareaanhesaplama));
      return [dikalanhesaplama,kareaanhesaplama];
    })();
    
    jQuery('.my-text').html('Dikd?rtgen Alan? :');

    Dikd?rtgen Alan? : I am trying to print results. If the criterion is B, the explanation part changes and I try to print it by calculating according to the B criterion.

    The last piece of code you sent is merging.
    For example, fieldname1(25 values) * fieldname2 (25 values) If the criterion is A: 625 is required;
    Merging is doing; It prints a result of 625,625.

    In summary, what we want is if the criterion A is selected, write the result: 625.
    If B Criterion is selected: Write the calculation result in B criterion.

    Thanks

    Thread Starter klingbeil

    (@klingbeil)

    Hello, it didn’t.
    In fact, in the return field;

      return [dikalanhesaplama,kareaanhesaplama];

    It works when I define someone. But when I select criteria fieldname14 it doesn’t work.
    Could it be an error in the computational coding?
    Thanks

    Additional Note: Video Link

    Thread Starter klingbeil

    (@klingbeil)

    Hello; I am improving myself a lot because of you. We were having trouble changing the last text field. But today I solved it.
    Namely;
    I wrote the code as follows, my-text field is changing without any problem..

    (function(){
      var dikalanhesaplama = 0;
      var karealanhesaplama = 0;
        if (fieldname14 == 'A') {
        dikalanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
        jQuery('#calculation-dikalanhesaplama').html(dikalanhesaplama + ' cm2');
    	jQuery('.my-text').html('Dikd?rtgen Alan? :');
      }
      if (fieldname14 == 'B') {
        kareaanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
        jQuery('#calculation-kareaanhesaplama').html(kareaanhesaplama + ' cm2');
    	jQuery('.my-text').html('Kare Alan? :');
      }
      return [dikalanhesaplama,kareaanhesaplama];
    })();

    This is how I did it while writing the result.

    <b class="my-text mobile-aciklama">Hesaplama Sonucu :</b></td><td style="text-align: right;"><b><span data-calculated-field="fieldname14" class="mobile-sonuc" style="color:#ff6504;"></span></b>

    Description variables work fine. But I couldn’t print the results, where am I going wrong?
    Thanks a lot.

    Thread Starter klingbeil

    (@klingbeil)

    same on separate pages and separate forms

    jQuery('#calculation-result').html(result);

    I am using the result. Completely separate page and separate form ids, single result parts are the same

    Thread Starter klingbeil

    (@klingbeil)

    I am writing the result in the right fields with the result example calculation function. Criterion B is on the right side, I don’t want a cell to appear.

    Example : I selected fieldname30 and hide a cell in the 2nd query. Making a result that corresponds to the hidden cell #calculation-can I hide the hidden cell from the user?
    thanks

Viewing 15 replies - 91 through 105 (of 144 total)