Skip to main content
August 8, 2024
Solved

styledTextEditorField refresh after keypress

  • August 8, 2024
  • 8 replies
  • 1 view

Hi all,

I would like to use the styled text editor field in place of paragraph field to be able to use bulleted lists, but there is no refresh after keypress that we can set. How can I mimic this refresh functionality with a styledTextEditorField?

I have something like this:

a!localVariables(

local!origNote,

local!newNote,

a!styledTextEditorField(
label: "Edit Note",
value: local!origNote,
sizeLimit: cons!ERR_MAX_CHAR_NOTE,
/*refreshAfter: "KEYPRESS",*/
saveInto: a!save(
local!newNote,
)
),)

Best answer by vedant.ambarkar

You don't need keypress refresh for that. As long as you're using the right local variables in the value and saveInto parameters, user input will be visible in the styledTextEditor field. 

a!localVariables(
  local!note,
  a!styledTextEditorField(
    label: "Edit Note",
    value: local!note,
    sizeLimit: 50,
    saveInto: local!note
  )
)

8 replies

stefanhelzle0001
Brainy
August 8, 2024

If this is not supported by Appian, there is nothing you can do.

August 8, 2024

What is your use case here? Why do you need the keypress refresh?

ginao0001Author
August 8, 2024

Users need to input a bulleted list and they need to be able to see the updates as they input them.

August 8, 2024

You don't need keypress refresh for that. As long as you're using the right local variables in the value and saveInto parameters, user input will be visible in the styledTextEditor field. 

a!localVariables(
  local!note,
  a!styledTextEditorField(
    label: "Edit Note",
    value: local!note,
    sizeLimit: 50,
    saveInto: local!note
  )
)

mikes0011
Brainy
August 8, 2024
value: local!origNote,
saveInto: a!save( local!newNote )

Please, just don't do this.

prasantap0900
August 9, 2024

a!localVariables(
  local!a,
  a!cardLayout(
    contents:
    a!styledTextEditorField(
      sizeLimit: 200,
        value: local!a,
        saveInto: local!a
    )
  )
)

You can only do like that and please check your value and saveInto parameter.