Form field script runs three times

Viewing 2 reply threads
  • Author
    Posts
  • December 30, 2023 at 4:11 AM #50265

    Torsten Reim
    Participant

    Dear members,

    how can I prevent that my form field script runs three times? I need 3 event listeners for my form. But this code should only run once.

    var letzter_eintrag = record.getFieldValue(‘fld-827f7254f04c462f887323172ef309ca’);
    var brief_erstellt = record.getFieldValue(‘fld-8295048b2bee4f959bb952914117c266’);
    var brief_versandt = record.getFieldValue(‘fld-c1e5d2c7de1844d2ae50fdcbe118232d’);

    function ….{
    call another function;

    }

    ……

    December 30, 2023 at 4:18 AM #50266

    Torsten Reim
    Participant

    I forgot:

    It runs three times if I click the “+” button in the form to add a new record. How can I prevent this?

    December 30, 2023 at 4:27 AM #50267

    Torsten Reim
    Participant

    Solution:

    var letzter_eintrag = record.getFieldValue(‘fld-827f7254f04c462f887323172ef309ca’);
    var brief_erstellt = record.getFieldValue(‘fld-8295048b2bee4f959bb952914117c266’,false);
    var brief_versandt = record.getFieldValue(‘fld-c1e5d2c7de1844d2ae50fdcbe118232d’,false);

Viewing 2 reply threads

You must be logged in to reply to this topic.