Skip to main content
December 6, 2024
Solved

Add line break in Confirmation message of button

  • December 6, 2024
  • 7 replies
  • 0 views

Hi,

I have a local variable local!tasks containing a list.

In the confirmation message of a button I would like to concatenate a text with the local variable.

Eg : Are you sure want to & local!tasks

I want to display the list of tasks in next line 

eg : Are you sure want to 

task1

task2

task3

inside confirmation message of a button

I am using char(10) but it is not working as expected. Is there any way to show like this in confirmation message of a button?

    Best answer by prasantap0900

    Please set refreshAfter of paragraph field as "KEYPRESS"

    the value is stored in the local variable only when the user clicks outside the paragraph field

    7 replies

    stefanhelzle0001
    December 6, 2024

    No. These dialogs do not support normal formatting.

    gayatria0439
    December 6, 2024

    Hi [mention:2636807152274a4380d4056f6dc9e842:e9ed411860ed4f2ba0265705b8793d05] ,

    I have tried it with different styles, lastly with HTML code also by using concat, but as Stefan said, it won't support this type of formatting.

    stefanhelzle0001
    December 6, 2024

    No line breaks, but if you just need some bold or italic, there might be an option: appian.rocks/.../

    mikes0011
    Brainy
    December 6, 2024

    I've long been wishing they'd upgrade these to accept at least some limited richtext, or perhaps even just linebreaks, but sadly so far these (and basic validation messages) are stuck only displaying plaintext.

    Edit: ironically just yesterday (2024-12-11) I discovered basically by accident that TOOLTIPS (field tooltips as well as rich text captions etc) all now seem to accept LINEBREAKS (i.e. the "char(10)" command), which opens up new areas of possibility for formatting.  Sadly this does not seem to apply to the button confirmation pop-up message, though it might(?!?) apply to the button confirmation HEADER (lol).  BTW, if anyone is still on a version LOWER than 24.4, I'd love to confirm whether this feature is new with 24.4 or if we just haven't noticed it before.

    December 12, 2024

    I have an edge case scenario regarding the confirmation message.

    I need to show the confirmation message only if the user fills the Paragraph field.

    eg : I have a paragraph field where the user enters the text and click on submit. After clicking the submit button I am showing the confirmation message..

    I should not show the confirmation message if the user does not enter anything in the paragraph field and I am showing validation message in the paragraph field. I am storing the text in a local variable . ie local!note

    I gave the condition like if a!isnullorempty(local!note),{},"Message").

    the value is stored in the local variable only when the user clicks outside the paragraph field. If the user clicks on the submit after entering the text and without clicking outside the field then the variable is not storing the value and the form is getting submitted without the confirmation message.

    When we click on submit we are saving the note(paragraph field) in rule input from the local variable.

    How to handle this scenario

    prasantap0900
    December 12, 2024

    Please set refreshAfter of paragraph field as "KEYPRESS"

    the value is stored in the local variable only when the user clicks outside the paragraph field
    December 12, 2024

    thank you, it worked