Button() parameters

Good afternoon everyone,

Does someone know what the correct "alertType: " options are. I am trying to only get an alert on errors (my button pushes another button that shows no alerts), but I haven’t found the right option yet.

Thanks in advance,
Greetings,
Joost

1 Like

Hi @joost_mineur ,

There you go!

2 Likes

Hey @Pablo_DV

Thank you, I will try.
I tried “none”, maybe ir was the lower case that didn’t work.
Just out of curiosity, how did you find out about this?

Greetings, Joost

1 Like

Yeah, it’s case sensitive.

I didn’t, I quoted the answer!

1 Like

Thanks - I hadn’t even noticed the quote block…
I will do some more testing tomorrow, it seems that the sequence of typing the options makes a difference too. For tonight, my laptop is low on battery and it is 2:09AM here, so enough for today. But I am glad it is working now.

1 Like

I had never noticed! How so?

1 Like

I don’t have time at this very moment, but I will setup a test with a bundle of different options. The strange thing is, the behavior was not consistent across different buttons, but obviously all buttons do something else: some push one button with one formula, others push buttons that press other buttons and execute formulas. All the underlying buttons are set to only show error messages.
For one button to get rid of notifications I had to alter the sequence:
`
button(thisRow.[brevet aanvraag],“brevet”,color: “Blue”,alertType: “None”, imageIcon: “add”)

button(thisRow.[brevet aanvraag],“brevet”,color: “Blue”, imageIcon: “add”, alertType: “None”)`

The first line works, the 2nd line doesn’t.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.