0

Multiple Dialog Threads On One Button

Hi Everyone, I have tried desperately to program a button to execute a different dialog thread based on the selection of a multiple choice field. I can't get it to work! It only executes the first dialog thread, but ignores the second, regardless of the multiple choice selection. Will someone PLEASE HELP?!

Thank you'all so much. 😟

Moses

5 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 3 yrs ago
    • Reported - view

    Multiple choice fields are not easy. To understand them better, please have a look at this : https://ninox.com/en/forum/use-cases-5abd0b9c4da2d77b6ebfa395/multiple-choice-facts-5f6cebdb496de40e7f818b1d

    Steven.

    • Lewis_Johnson
    • 3 yrs ago
    • Reported - view

    I apologize, NOT multiple choice, just choice. 

    • Alain_Fontaine
    • 3 yrs ago
    • Reported - view

    You don't give an example of code that you tried and that did not work, so it is rather difficult for anyone to propose an improvement...

    Pie in the sky: if you are comparing the value of the "Choice" field with strings corresponding to the textual representations of the various options, did you apply the text() fonction (text(choicefield) = "stringvalue")?

    • Lewis_Johnson
    • 3 yrs ago
    • Reported - view

    I“m basically trying to use one button to execute two different dialog threads using the choice field as a switch. In other words I have One Button & One Choice Field with only two options ”A“ & ”B“.  
    If I select ”A“ and press the button field it executes the first code of dialog thread... If I select ”B“ and press the button field it executes the second code of dialog thread.

    I haven”t found a solution anywhere. Is it that multiple dialog threads can“t exist under a single button?

    it seems odd that no one else has use for 

    this.

    I can”t seem to find a solution anywhere  

    Moses

    • Alain_Fontaine
    • 3 yrs ago
    • Reported - view

    Did you try something like:

    switch text(Choice) do
    case “A”:
         (
              let Zresp := dialog(“A”, “Option for case A”, [“A1”, “A2”]);
              alert(“You choose ” + Zresp)
         )
    case “B”:
         (
              let Zresp := dialog(“A”, “Option for case B”, [“B1”, “B2”]);
              alert(“You choose ” + Zresp)
         )
    end

Content aside

  • 3 yrs agoLast active
  • 5Replies
  • 610Views