Skip to main content
Nintex Community Menu Bar
Question

How java script will work when field editor component in edit mode?

  • July 11, 2024
  • 2 replies
  • 12 views

Forum|alt.badge.img+3

I have written javascript it’s working only when "field editor” is on “read and edit inline” mode ,It’s
not working when “field editor”  is on “edit” mode .

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+10

vicky,

I think you have a custom render (javascript) that works in ‘read and edit inline’ mode, but not ‘edit’ mode.  You will need to add to your javascript snippet some code to tell Skuid what to display when in ‘edit’ mode.  Here is a simple example:

<br>//render the field in read and edit mode<br>if(field.mode == 'read') {<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; skuid.ui.fieldRenderers.STRING.read(field, value);<br>}<br>if(field.mode == 'edit') {<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; skuid.ui.fieldRenderers.STRING.edit(field, value);<br>}


Thanks,

Bill


Forum|alt.badge.img+3

Thanks Bill.