I have a button on a list view that I would like to apply to selected records on a skuid table Is there a simple way to do this? The code on my button is {!REQUIRESCRIPT(“/soap/ajax/10.0/connection.js”)} {!REQUIRESCRIPT(“/soap/ajax/14.0/apex.js”)} {!REQUIRESCRIPT(“/resource/1355393414000/smagicinteract__jquery”)} {!REQUIRESCRIPT(“/resource/1355395084000/smagicinteract__jqueryUI”)} {!REQUIRESCRIPT(“/resource/1355395025000/smagicinteract__jqueryuicss”)} {!REQUIRESCRIPT(“/resource/1359133317000/smagicinteract__sendSMSJS”)} var records = {!GETRECORDIDS($ObjectType.Account)}; if (records[0] == null) { alert(“Please select at least one lead”); } else{ var packagePrefix = “smagicinteract__”; var recordType = “Account”; var recordIds = “”; var nameField = ‘Name’; var mobileField = ‘Phone’; var optOutField = ‘’; var smsType = ‘popup’; var userId = ‘{!$User.Id}’; var elementIdVar = ‘’; var showUserDropDown = false; var dialogTitle = ‘’; for (var n in records) { if(n == ‘remove’ || n == ‘indexOf’) continue; recordIds = recordIds + records[n]; if (n != records.length-1) { recordIds = recordIds + “,”; } } sendSMS(recordType, recordIds, userId, nameField, mobileField, optOutField, smsType, elementIdVar, packagePrefix, showUserDropDown, dialogTitle); } /* Details of parameters which can be modified : recordType - include the object API name. mobileField - use the field name which contain mobile phone of the record. optOutField - use the field which contains opt out preference of the record. smsType - this parameter can be used to sepcify the type of interface required. For Visualforce page, it should be left blank. For popup, its value should be ‘popup’. dialogTitle - you can mention the name of pop up dialogue box in this parameter. */
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


