Create a new form in Myaccount New Tab.

We need to create a new form and place it into my account tab

For creating a new tab in myaccount we have to get Myaccountmenu component in the entry point of javascript.Then need to create JSON array for adding the new tab with the required parameter.

			var myaccountmenu = container.getComponent("MyAccountMenu");
			var preordersmenugroup = {
			     id: "credit_term",
			     name: "Apply for terms",
			     index: 7,
				 url: "credit-term",
			     permissionoperator: "OR",
			     permission: [
			         {
			             group: "transactions",
			             id: "tranSalesOrd",
			             level: "1"
			         },
			         {
			             group: "transactions",
			             id: "tranEstimate",
			             level: "1"
			         }
			     ]
			}

If we need to open new page for the new tab, then we need to setup the router

Leave a comment

Your email address will not be published. Required fields are marked *