How to create a button in any record using only workflow

We can add buttons in any type of records using only workflow, without doing any script. Go to Customization > Workflow >workflows >NewCreate a new workflowSelect any state in the workflow and add action as “add button”fill up the all required values in the form and your conditions and save itWhen the workflow runs the… Continue reading How to create a button in any record using only workflow

Create a send email button in a customer record which should available only once for each customer records

We can create button in customer record which can be vanished or disabled after using it for once. Create a customer.Add a custom check box to use it as the condition to show or hide the send email button.Create a workflow and In state 1 added the send email button.In state 2 send the email… Continue reading Create a send email button in a customer record which should available only once for each customer records

How to receive multiple arguments ranging from and beyond the stated index and collect them into a single array to perform multiple actions using them.

If we have a function call which has to accept multiple values and perform actions using all of them at a time, then we can use this method to reduce the complexity of the code. The _.restArguments() function is an inbuilt function in Underscore.js library of JavaScript which is used to find a version of… Continue reading How to receive multiple arguments ranging from and beyond the stated index and collect them into a single array to perform multiple actions using them.

How to trigger a custom event defined in a tracker object

Triggers a custom event defined in a Tracker object. Data can be appended to the custom event by passing in an object with as many property/value pairs as required. Note: triggerEvent cannot be used to trigger any of the standard application events, for example, when an item is added to the cart or the product… Continue reading How to trigger a custom event defined in a tracker object

How to reposition a child view inside a placeholder by changing the index value of the child view

Repositions a child view inside a placeholder by changing the index value of the child view. The index is a 10-based index. Set index to less than 10 to position the child view before the current child view; set index to greater than 10 to position the child view after the current child view. If… Continue reading How to reposition a child view inside a placeholder by changing the index value of the child view

How to add one or more child views to a view that already exists in the DOM

Add one or more child views to a view that already exists in the DOM. Child views can be added to elements that have the data-view or data-cms-area data attribute. If there are multiple elements in a template that have a data-view (or data-cms-area) attribute value of view_id, the child views are added to all… Continue reading How to add one or more child views to a view that already exists in the DOM

How to target a specific matrix child from the list of several matrix child items from the parent item

When we have huge number of child items in a parent item and we want to target a specific type of child item we can target it uasing the extensibility API of PDP page methods. _.extend(ProducDetailsFullView.prototype, { getContext: _.wrap(OrderWizardModulePromocodeForm.prototype.getContext, function (fn) { let original_Ret = fn.apply(this, _.toArray(arguments).slice(1)); let pdp = container.getComponent(‘PDP’); let getSelectedMatrixChild = pdp.getSelectedMatrixChilds( {custitem_ag_check_colors:… Continue reading How to target a specific matrix child from the list of several matrix child items from the parent item