0

Dialog on Trigger on new record

Am I correct that a Dialog will not work (cloud version) when creating a new record.  Example dialog below in case there is something wrong with it.

let title := "Serial and/or Bundle Required";
let message := "Does this new record need it's Serial Number logged? 
If so is it part of a Kit/Bundle?";
let answerOptions := ["Yes", "Both", "Ignore"];
if dialog(title, message, answerOptions) = "Yes" then
    SERIALIZE = true;
    if dialog(title, message, answerOptions) = "Both" then
        SERIALIZE = true;
        'IS BUNDLE' = true;
        if dialog(title, message, answerOptions) = "Ignore" then
            SERIALIZE = false;
            'IS BUNDLE' = false
        end
    end
end

5 replies

null
    • Fred
    • 8 mths ago
    • Reported - view
     said:
    Am I correct that a Dialog will not work (cloud version) when creating a new record.

    You are correct all code in Trigger on New Record for the cloud version will run server side, so all alerts and dialogues do not show up to the user.

    You can put it in a button and it will work.

    • Alan_Cooke
    • 8 mths ago
    • Reported - view

    So, limiting that.  Only work around is to have fields/formulas based on display if.  Painful!  Would be great if one could fire a button on Trigger if new record.

      • John_Halls
      • 8 mths ago
      • Reported - view

       But what happens when multiple new records are created in a script. as is often the case?

      • Alan_Cooke
      • 8 mths ago
      • Reported - view

      Not sure how your question relates to this post.

      • spinner_7580
      • 8 mths ago
      • Reported - view

       Yep - just went thru that pain tunnel.  In order to show a user friendly interface I had to create a couple of fields with msg content as well as turn field visibility on/off appropriately.  When the designatied fields disappear a buttion is shown that forces the user to click to perform the intended trigger function.

Content aside

  • 8 mths agoLast active
  • 5Replies
  • 71Views
  • 4 Following