I need some help with this. I have a scenario when a checkbox is true, i want to update contact mailing adderss into other address. Here i did some extent. But not solved completely i am facing some issues.
Thanks in Advance.
Here is my code: var field = arguments[0], value = arguments[1], $ = skuid.$; field.element.html(skuid.ui.renderers.BOOLEAN.edit({ onChange : function(value){ var conRow = skuid.$M(‘Contact’).getRows()[0]; if(value) { conRow.OtherCity = conRow.MailingCity; conRow.OtherStreet = conRow.MailingStreet; conRow.OtherCountry = conRow.MailingCountry; conRow.OtherState = conRow.MailingState; conRow.OtherPostalCode = conRow.MailingPostalCode; } else { conRow.OtherCity = ‘’; conRow.OtherStreet = ‘’; conRow.OtherCountry = ‘’; conRow.OtherState = ‘’; conRow.OtherPostalCode = ‘’; } skuid.$M(‘Contact’).adoptRows( field.row, field.row); } }));
Question
Facing issue in updating contact Mailing address into OtherAddress when onChange of checkbox
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.