Skip to main content

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 .

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


Thanks Bill.