Skip to main content
Participating Frequently
Aug 8, 2024 1:47 PM UTC
Solved

styledTextEditorField refresh after keypress

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,
)
),)

Employee
Aug 8, 2024 3:51 PM UTC

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
Aug 8, 2024 2:27 PM UTC

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

Employee
Aug 8, 2024 2:46 PM UTC

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

ginao0001Author
Participating Frequently
Aug 8, 2024 3:44 PM UTC

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

Employee
Aug 8, 2024 3:51 PM UTC

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
Aug 8, 2024 4:36 PM UTC
value: local!origNote,
saveInto: a!save( local!newNote )

Please, just don't do this.

The Expression Guru
prasantap0900
Participating Frequently
Aug 9, 2024 6:30 AM UTC

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.