text: function addWidgetsfrmForm() {
      var lblName = new kony.ui.Label({
          "id": "lblName",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Name"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [2, 2, 2, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {
          "textCopyable": false
      });
      var tbxName = new kony.ui.TextBox2({
          "autoCapitalize": constants.TEXTBOX_AUTO_CAPITALIZE_NONE,
          "focusSkin": "textBoxFocus",
          "id": "tbxName",
          "isVisible": true,
          "keyBoardStyle": constants.TEXTBOX_KEY_BOARD_STYLE_DEFAULT,
          "placeholder": "Username",
          "secureTextEntry": false,
          "skin": "textBoxNormal",
          "textInputMode": constants.TEXTBOX_INPUT_MODE_ANY
      }, {
          "containerHeightMode": constants.TEXTBOX_FONT_METRICS_DRIVEN_HEIGHT,
          "containerHeightReference": constants.CONTAINER_HEIGHT_BY_FORM_REFERENCE,
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "autoFilter": false,
          "keyboardActionLabel": constants.TEXTBOX_KEYBOARD_LABEL_DEFAULT,
          "viewType": constants.TEXTBOX_VIEW_TYPE_DEFAULT
      });
      var lblPasword = new kony.ui.Label({
          "id": "lblPasword",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Password"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [2, 1, 2, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {
          "textCopyable": false
      });
      var tbxPassword = new kony.ui.TextBox2({
          "autoCapitalize": constants.TEXTBOX_AUTO_CAPITALIZE_NONE,
          "focusSkin": "textBoxFocus",
          "id": "tbxPassword",
          "isVisible": true,
          "keyBoardStyle": constants.TEXTBOX_KEY_BOARD_STYLE_DEFAULT,
          "placeholder": "Password",
          "secureTextEntry": true,
          "skin": "textBoxNormal",
          "textInputMode": constants.TEXTBOX_INPUT_MODE_ANY
      }, {
          "containerHeightMode": constants.TEXTBOX_FONT_METRICS_DRIVEN_HEIGHT,
          "containerHeightReference": constants.CONTAINER_HEIGHT_BY_FORM_REFERENCE,
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {
          "autoFilter": false,
          "keyboardActionLabel": constants.TEXTBOX_KEYBOARD_LABEL_DEFAULT,
          "viewType": constants.TEXTBOX_VIEW_TYPE_DEFAULT
      });
      var lblCountry = new kony.ui.Label({
          "id": "lblCountry",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Country"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [2, 1, 2, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {
          "textCopyable": false
      });
      var combobox1931202839100076 = new kony.ui.ComboBox({
          "focusSkin": "cboxColorBG",
          "id": "combobox1931202839100076",
          "isVisible": true,
          "masterData": [
              ["1", "Please Select.."],
              ["2", "Australia"],
              ["3", "India"],
              ["4", "Japan"],
              ["5", "Singapur"],
              ["6", "United Kingdom"],
              ["7", "United States"]
          ],
          "selectedKey": "1",
          "selectedKeyValue": ["1", "Please Select.."],
          "skin": "cboxColorBG"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {});
      var lblBDate = new kony.ui.Label({
          "id": "lblBDate",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "BirthDate"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [2, 1, 2, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {
          "textCopyable": false
      });
      var calBDate = new kony.ui.Calendar({
          "dateFormat": "dd/MM/yyyy",
          "focusSkin": "calFocus",
          "id": "calBDate",
          "isVisible": true,
          "skin": "calNormal",
          "viewConfig": {
              "gridConfig": {
                  "allowWeekendSelectable": true
              }
          },
          "viewType": constants.CALENDAR_VIEW_TYPE_DEFAULT
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {});
      var lblGender = new kony.ui.Label({
          "id": "lblGender",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Gender"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [2, 1, 2, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {
          "textCopyable": false
      });
      var rbtGender = new kony.ui.RadioButtonGroup({
          "focusSkin": "radioNormal",
          "id": "rbtGender",
          "isVisible": true,
          "masterData": [
              ["1", "Male"],
              ["2", "Female"]
          ],
          "selectedKey": "1",
          "selectedKeyValue": ["1", "Male"],
          "skin": "radioNormal"
      }, {
          "containerWeight": 100,
          "hExpand": true,
          "itemOrientation": constants.RADIOGROUP_ITEM_ORIENTATION_HORIZONTAL,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {});
      var lblTermsNConditions = new kony.ui.Label({
          "id": "lblTermsNConditions",
          "isVisible": true,
          "skin": "lblNormalSimilar",
          "text": "Terms & Conditions"
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [2, 1, 2, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {
          "textCopyable": false
      });
      var rTxTermsNConditions = new kony.ui.RichText({
          "id": "rTxTermsNConditions",
          "isVisible": true,
          "skin": "richNormal",
          "text": "This is a simple form consists of different widgets including Label, Textbox2, Combobox, Richtext, Calendar, hBox, Checkboxgroup, Radiobutton."
      }, {
          "containerWeight": 100,
          "contentAlignment": constants.CONTENT_ALIGN_MIDDLE_LEFT,
          "hExpand": true,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "vExpand": false,
          "widgetAlignment": constants.WIDGET_ALIGN_CENTER
      }, {});
      var chkAccept = new kony.ui.CheckBoxGroup({
          "focusSkin": "cbxAccept",
          "id": "chkAccept",
          "isVisible": true,
          "masterData": [
              ["1", "Accept"]
          ],
          "skin": "chkBxAcceptTab"
      }, {
          "containerWeight": 100,
          "itemOrientation": constants.CHECKBOX_ITEM_ORIENTATION_VERTICAL,
          "margin": [3, 1, 3, 1],
          "marginInPixel": false,
          "padding": [1, 1, 1, 1],
          "paddingInPixel": false,
          "widgetAlignment": constants.WIDGET_ALIGN_MIDDLE_LEFT
      }, {});
      frmForm.add(lblName, tbxName, lblPasword, tbxPassword, lblCountry, combobox1931202839100076, lblBDate, calBDate, lblGender, rbtGender, lblTermsNConditions, rTxTermsNConditions, chkAccept);
  };
  
  function frmFormGlobals() {
      frmForm = new kony.ui.Form2({
          "addWidgets": addWidgetsfrmForm,
          "enabledForIdleTimeout": false,
          "id": "frmForm",
          "needAppMenu": true,
          "skin": "frm",
          "title": "Form with widgets"
      }, {
          "displayOrientation": constants.FORM_DISPLAY_ORIENTATION_BOTH,
          "layoutType": constants.CONTAINER_LAYOUT_BOX,
          "padding": [0, 0, 0, 0],
          "paddingInPixel": false
      }, {
          "footerOverlap": false,
          "headerOverlap": false,
          "inTransitionConfig": {
              "formAnimation": 0
          },
          "menuPosition": constants.FORM_MENU_POSITION_AFTER_APPMENU,
          "outTransitionConfig": {
              "formAnimation": 0
          },
          "retainScrollPosition": false,
          "titleBar": true,
          "titleBarSkin": "titleBarAndroid",
          "windowSoftInputMode": constants.FORM_ADJUST_RESIZE
      });
      frmForm.info = {
          "kuid": "p2kwiet12889314953865"
      };
  };