Is it possible to disable a button in showConfirm?

Hello,

I’m trying to build a “Help” popup on screen. The closest thing I found to it would be the showConfirm because the Modal takes too much space in this context.

However I would need only one button to close the popup, not the standard two (Cancel/Save).

Is this something that is possible?

I tried something like this but it obviously did not work:

  client.interface.trigger("showConfirm", {
    title: "Sample Confirm",
    message: "Do you want to save the changes?", saveLabel: "save", cancelLabel: ""
  })
2 Likes

Hi Alex, hope you are doing well.

From your query, I understand that showModal takes up too much of the UI real estate. And that the size of showConfirm is perfect for your needs. However, the UI options related to the Interface API are pre-designed set of behaviours built into Freshservice which the app takes leverage of. showConfirm, as the name suggests, primarily refers to confirmation boxes.

My suggestion would be to check if showModal can be somehow fitted to your use case. If not, it would have to be a feature request to product to modify the pre-built behaviour of showConfirm.

Prithvi

2 Likes