var modRef =skuid.model.getModel(‘PayInv’);
var rowRef = modRef.getFirstRow();
var f = rowRef.Refunded_Amount__c;
if(newD !== dateString)
f.readOnly = true;
I am wondering why the value disappear when the field changed to ReadOnly ? I would be glad if any one could help me with this.
Thank you for the quick response. When I do console.log() , it still shows the value on console but not in skuid page ?? Is it something to do with “saving” ?
Amish, No problem! To my knowledge you are setting it in the Model values on the page to some degree, but the model doesn’t show the value until it is saved to the database. This has been my experience so far and usually I have been able to hide the field value from the layout and use a wizard approach. For example I would make the first step in the wizard where it lets you enter all the details (hiding the read-only field you technically are setting through JS and then a second step to review the saved details and make changes if necessary…at which point I see the read-only field completed. Not sure if that fits your use case, but it is something I like doing and gets around that issue for me normally. Thanks, Jeff
Thank you ! I will try this approach and let you know.
Thank you !