Skip to main content

Is there any way that I can assign values from a custom field rendering snippet so that it is pushed into the actual Field Value? I have a custom snippet that calculates a Running Balance, but the actual value of the “Balance” field in SalesForce is still blank.

Can anyone suggest a solution or workaround? Would be greatly appreciated.
3f1c2daf23cddb5358574237f2a5e0a174fce9e4.png

var field = arguments[0],&nbsp; &nbsp; value = arguments[1],<br>&nbsp; &nbsp; $ = skuid.$;<br>var row = field.row;<br>var model = field.model;<br>//do your calculation here...<br>//assuming value is now the new value...&nbsp;<br>model.updateRow(row,'Your_Field__c',value,{<br>initiatorId: field._GUID<br>});<br>skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);

Thank you for the quick reply Moshe. The code above worked great for me.

I was partly there with “model.updateRow”, but seemed to be missing the “initiatorId: field._GUID”

Big thank you!