Data Type not casting properly from Record Type Relationship

So, I have a relationship between these record types.

I'm trying to put the value of the record type's data field into a value and saveInto parameters.

It just doesn't work on the integer fields, only successfully on the text fields. I'd appreciate any feedback regarding this. 

The field is correctly an integer, as is the data type in the record field.

 

recordType!ASK Request Item.relationships.dsSNR.fields.serialNumberQuantity

    a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!dateField(
                label: cons!ASK_TEXT_LABEL_NEED_BY,
                labelPosition: "JUSTIFIED",
                value: ri!request.needByDate,
                saveInto: ri!request.needByDate,
                required: true,
                validations: {
                  if(
                    today() > ri!request.needByDate,
                    cons!ASK_TEXT_VAL_INVALID_DATE,
                    ""
                  )
                }
              ),
              a!dropdownField(
                label: cons!ASK_TEXT_LABEL_PRIORITY,
                labelPosition: "JUSTIFIED",
                placeholder: "--- Select a Priority ---",
                choiceLabels: local!priorities['recordType!{302c442b-4f91-47b7-819c-f0c384b97ea3}ASK Priority.fields.{a8db5ba0-7866-4f34-b7f5-b27c8be83f1e}name'],
                choiceValues: local!priorities['recordType!{302c442b-4f91-47b7-819c-f0c384b97ea3}ASK Priority.fields.{a4af8c93-656c-4083-99ab-d6712090f6b0}priorityId'],
                value: ri!request.priorityId,
                saveInto: ri!request.priorityId,
                searchDisplay: "AUTO",
                required: true,
                validations: {}
              ),
              a!paragraphField(
                label: cons!ASK_TEXT_LABEL_DESCRIPTION,
                labelPosition: "JUSTIFIED",
                value: ri!request.description,
                saveInto: ri!request.description,
                refreshAfter: "UNFOCUS",
                characterLimit: 4000,
                height: "MEDIUM",
                required: true,
                validations: {}
              )
            }
          ),
          a!columnLayout(
            contents: {
              a!fileUploadField(
                label: "File Upload",
                labelPosition: "ABOVE",
                target: cons!ASK_FOLDER_REQUEST_DOCUMENTS,
                value: ri!documents,
                saveInto: ri!documents,
                validations: {}
              ),
              a!radioButtonField(
                label: "Request Type (If Applicable):",
                labelPosition: "ABOVE",
                choiceLabels: {
                  "Serial Number",
                  "TPS Request"
                },
                choiceValues: { 4, 5},
                value: local!RequestType,
                saveInto: {
                  local!RequestType,
                  a!save(
                    ri!requestItem,
                    'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item'(
                      'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.fields.{d17725aa-d8a4-4a1d-8b51-d93a22c7c596}serviceItemId': local!RequestType,
                      'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.fields.{4a2958cb-93b4-44f0-8e2f-dedca9e0c853}justification': "Based off of selected request type."
                    )
                  )
                  
                },
                choiceLayout: "COMPACT",
                choiceStyle: "STANDARD",
                validations: {}
                
              )
            }
          )
        }
      ),
      a!cardLayout(
        contents: {
          a!richTextDisplayField(
            labelPosition: "COLLAPSED",
            value: {
              a!richTextIcon(icon: "info-circle"),
              a!richTextItem(
                text: " You will be forwarded to the Job Requisition form after submitting this support request form."
              )
            }
          )
        },
        height: "AUTO",
        showWhen: rule!ASK_isJobRequisitionInRequestItems(requestItems: ri!requestItem),
        style: "INFO",
        marginBelow: "STANDARD"
        
      ),
      rule!Copy_Of_ASK_GRD_CMPT_Services(requestItems: ri!requestItem
        ),
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!cardLayout(
                contents: {
                  a!sectionLayout(
                    label: "Serial Number Requestor Input:",
                    labelIcon: "pencil",
                    labelColor: "#434343",
                    contents: {
                      a!columnsLayout(
                        columns: {
                          a!columnLayout(
                            contents: {
                              a!sideBySideLayout(
                                items: {
                                  a!sideBySideItem(
                                    item: a!integerField(
                                      label: "Drawing Number:",
                                      labelPosition: "ABOVE",
                                      helpTooltip: "Manufacturer/vendor part number.",
                                      value: "",
                                      saveInto: {},
                                      refreshAfter: "UNFOCUS",
                                      required: true,
                                      readOnly: false,
                                      validations: {}
                                    )
                                  ),
                                  a!sideBySideItem(
                                    item: a!integerField(
                                      label: "Item Number:",
                                      labelPosition: "ABOVE",
                                      helpTooltip: "Part number to be tracked in inventory. Includes drawing number + configuration information.",
                                      value: "",
                                      saveInto: {'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{81b900e2-0e85-4466-88cc-710fd0806708}itemNumber'},
                                      refreshAfter: "UNFOCUS",
                                      required: true,
                                      readOnly: false,
                                      validations: {}
                                    )
                                  ),
                                  a!sideBySideItem(
                                    item: a!integerField(
                                      label: "Serial Number Quantity:",
                                      labelPosition: "ABOVE",
                                      helpTooltip: "List the quantity of serial numbers being requested.",
                                      value:  "",
                                      saveInto: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{01b52c80-0241-4934-b54e-cb92320135f8}serialNumberQuantity',
                                      refreshAfter: "UNFOCUS",
                                      required: true,
                                      readOnly: false,
                                      validations: {}
                                    ),
                                    width: "MINIMIZE"
                                  )
                                },
                                alignVertical: "MIDDLE",
                                spacing: "STANDARD"
                              ),
                              a!sideBySideLayout(
                                items: {
                                  a!sideBySideItem(
                                    item: a!textField(
                                      label: "Item Classification:",
                                      labelPosition: "ABOVE",
                                      helpTooltip: "Classification of the hardware being manufactured/fabricated.",
                                      placeholder: "i.e., Class 1, II. Ill, IIIW, GSE, STE, PSE",
                                      value: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{df18f923-0360-4e38-9350-7aa0fc7293b4}itemClassification',
                                      saveInto: {'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{df18f923-0360-4e38-9350-7aa0fc7293b4}itemClassification'},
                                      refreshAfter: "UNFOCUS",
                                      required: true,
                                      readOnly: false,
                                      validations: {}
                                    )
                                  ),
                                  a!sideBySideItem(
                                    item: a!textField(
                                      label: "Contract:",
                                      labelPosition: "ABOVE",
                                      helpTooltip: "The contract the hardware being manufactured/fabricated is supporting.",
                                      placeholder: "i.e., Station, EVA, PAM, etc.",
                                      value: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{7aa6124c-baf2-4c28-a902-8fcbe115bf68}Contract',
                                      saveInto: {'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{7aa6124c-baf2-4c28-a902-8fcbe115bf68}Contract'},
                                      refreshAfter: "UNFOCUS",
                                      required: true,
                                      readOnly: false,
                                      validations: {}
                                    )
                                  )
                                }
                              ),
                              a!sideBySideLayout(
                                items: {
                                  a!sideBySideItem(
                                    item: a!richTextDisplayField(
                                      labelPosition: "COLLAPSED",
                                      value: {
                                        a!richTextHeader(
                                          text: {
                                            a!richTextIcon(
                                              icon: "question-circle-o"
                                            )
                                          },
                                          size: "LARGE"
                                        )
                                      },
                                      preventWrapping: false,
                                      tooltip: "Authorization document types required for serial number assignment (only one is required):" & char(10) & "
a. Task Preparation Sheet (TPS) number -"& char(10)& "For items being manufactured/fabricated via TPS." & char(10) &"
b. Purchase Requisition Number -"& char(10)& "For items being manufactured/fabricated by a vendor. " & char(10) &"
c. Purchase Order Number -"& char(10)& "For items being manufactured/fabricated bv a vendor."& char(10)&"
d. Non-conformance Report (NCR) Number (also referred to as Discrepancy Report (DR) )",
                                  align: "CENTER"
                                    ),
                                    width: "MINIMIZE"
                                  ),
                                  a!sideBySideItem(
                                    item: a!fileUploadField(
                                      label: "Authorization Document:",
                                      labelPosition: "ABOVE",
                                      saveInto: {},
                                      required: true,
                                      validations: {}
                                    )
                                  ),
                                  a!sideBySideItem(
                                    item: a!paragraphField(
                                      label: "Description:",
                                      labelPosition: "ABOVE",
                                      helpTooltip: "Part name/description of hardware.",
                                      value: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{345bc668-b4a5-4fff-b790-9c4b578ecf7b}Description',
                                      saveInto: {'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{860edaa3-9cb7-4020-8d5f-06278fc7be60}dsSnr.fields.{345bc668-b4a5-4fff-b790-9c4b578ecf7b}Description'},
                                      refreshAfter: "UNFOCUS",
                                      height: "SHORT",
                                      required: true,
                                      readOnly: false,
                                      validations: {}
                                    )
                                  )
                                }
                              )
                            },
                            width: "MEDIUM_PLUS"
                          )
                        }
                      )
                    },
                    isCollapsible: true,
                    isInitiallyCollapsed: true,
                    divider: "ABOVE",
                    dividerWeight: "MEDIUM"
                  )
                },
                height: "AUTO",
                showWhen: if(
                  a!isNotNullOrEmpty(
                    local!RequestType
                  ),(local!RequestType = 4),
                  false()
                ),
                style: "NONE",
                shape: "SEMI_ROUNDED",
                padding: "LESS",
                marginBelow: "STANDARD",
                showShadow: true,
                decorativeBarPosition: "START",
                decorativeBarColor: "#666666"
              ),
              a!columnsLayout(
                columns: {
                  a!columnLayout(
                    contents: {
                      a!cardLayout(
                        contents: {
                          a!columnLayout(
                            contents: {
                              a!sectionLayout(
                                label: "TPS Requestor Input:",
                                labelIcon: "pencil",
                                labelSize: "MEDIUM",
                                labelColor: "#434343",
                                contents: {
                                  a!columnsLayout(
                                    columns: {
                                      a!columnLayout(
                                        contents: {
                                          a!sideBySideLayout(
                                            items: {
                                              a!sideBySideItem(
                                                item: a!textField(
                                                  label: "TPS Request Title (If Applicable):",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Title of the TPS request.",
                                                  value: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{6187884e-4bd3-4f29-95d1-c2c9e1c90ea5}TPS_Title',
                                                  saveInto: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{6187884e-4bd3-4f29-95d1-c2c9e1c90ea5}TPS_Title',
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  validations: {},
                                                  align: "LEFT"
                                                ),
                                                width: "AUTO"
                                              ),
                                              a!sideBySideItem(
                                                item: a!textField(
                                                  label: "Axiom Program and System:",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Axiom Program and System this belongs to (include Charge/Contract code in LUS).",
                                                  placeholder: "e.g., Structures - Flight",
                                                  value: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{26113e6d-66a3-4375-a9b5-679d82d1ff42}AxProg',
                                                  saveInto:  'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{26113e6d-66a3-4375-a9b5-679d82d1ff42}AxProg',
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  validations: {}
                                                )
                                              ),
                                              a!sideBySideItem(
                                                item: a!textField(
                                                  label: "Building Location for Parts:",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Current building and lab location of the parts.",
                                                  value:  'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{c6ba2c33-e732-41a9-8363-f602febddab1}partsLocation',
                                                  saveInto:  'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{c6ba2c33-e732-41a9-8363-f602febddab1}partsLocation',
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  validations: {}
                                                )
                                              )
                                            },
                                            alignVertical: "MIDDLE",
                                            spacing: "STANDARD"
                                          ),
                                          a!sideBySideLayout(
                                            items: {
                                              a!sideBySideItem(
                                                item: a!textField(
                                                  label: "Building Location for Task:",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Current building and lab location of the task.",
                                                  value:  'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{2b3a1ca7-d736-4625-8321-89dea463481e}taskLocation',
                                                  saveInto: 'recordType!{79d0a366-4045-451c-a0d5-0f74b21c35c9}ASK Request Item.relationships.{da55b0dc-f761-47c2-8cba-d885f3288ae1}dsTps.fields.{2b3a1ca7-d736-4625-8321-89dea463481e}taskLocation',
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  validations: {}
                                                )
                                              ),
                                              a!sideBySideItem(
                                                item: a!dropdownField(
                                                  label: "Hardware Class ID:",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Number for Hardware Classification.",
                                                  placeholder: "--- Select a Value ---",
                                                  choiceLabels: {
                                                    1,
                                                    2,
                                                    3,
                                                    4,
                                                    5,
                                                    6,
                                                    7

                                                  },
                                                  choiceValues: {
                                                    "Non-Class / PSE",
                                                    "Class I",
                                                    "Class II",
                                                    "Class III",
                                                    "Class IIIW",
                                                    "GSE",
                                                    "STE"

                                                  },
                                                  value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{1b3a0669-e51a-4b77-aa57-7002d19e9610}hardwareClass'],
                                                  saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{1b3a0669-e51a-4b77-aa57-7002d19e9610}hardwareClass'],
                                                  searchDisplay: "AUTO",
                                                  validations: {}
                                                ),
                                                width: "AUTO"
                                              ),
                                              a!sideBySideItem(
                                                item: a!integerField(
                                                  label: "Drawing Number(s):",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Relevant drawings and drawing numbers.",
                                                  value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{feb1c8f3-a2ee-4f7c-a7c3-7949054fc87b}drawingNum'],
                                                  saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{feb1c8f3-a2ee-4f7c-a7c3-7949054fc87b}drawingNum'],
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  validations: {}
                                                ),
                                                width: "AUTO"
                                              )
                                            },
                                            alignVertical: "MIDDLE"
                                          ),
                                          a!sideBySideLayout(
                                            items: {
                                              a!sideBySideItem(
                                                item: a!integerField(
                                                  label: "Purchase Order:",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Purchase Order or AxCES PR.",
                                                  value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{17ff2ac8-2b96-4d83-b1b8-01f576051b86}purchaseOrder'],
                                                  saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{17ff2ac8-2b96-4d83-b1b8-01f576051b86}purchaseOrder'],
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  readOnly: false,
                                                  validations: {}
                                                )
                                              ),
                                              a!sideBySideItem(
                                                item: a!integerField(
                                                  label: "Serial Number(s):",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Assigned Serial Number(s) (if applicable).",
                                                  value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{40328bdb-c666-431b-9522-7db086f73f07}serialNum'],
                                                  saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{40328bdb-c666-431b-9522-7db086f73f07}serialNum'],
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  readOnly: false,
                                                  validations: {}
                                                )
                                              ),
                                              a!sideBySideItem(
                                                item: a!integerField(
                                                  label: "Lot Number(s):",
                                                  labelPosition: "ABOVE",
                                                  helpTooltip: "Assigned Lot Number(s) (if applicable).",
                                                  value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{50f449bd-2d08-4501-87da-12876552066b}lotNum'],
                                                  saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{50f449bd-2d08-4501-87da-12876552066b}lotNum'],
                                                  refreshAfter: "UNFOCUS",
                                                  required: true,
                                                  readOnly: false,
                                                  validations: {}
                                                )
                                              )
                                            },
                                            spacing: "SPARSE"
                                          ),
                                          a!columnsLayout(
                                            columns: {
                                              a!columnLayout(
                                                contents: {
                                                  a!integerField(
                                                    label: "Quantity of Parts:",
                                                    labelPosition: "ABOVE",
                                                    helpTooltip: "Bill of Materials and Quantity of items/parts.",
                                                    value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{a50bd1c2-853e-4978-8fc0-669280707b77}quantity'],
                                                    saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{a50bd1c2-853e-4978-8fc0-669280707b77}quantity'],
                                                    refreshAfter: "UNFOCUS",
                                                    required: true,
                                                    validations: {}
                                                  )
                                                },
                                                width: "NARROW_PLUS"
                                              ),
                                              a!columnLayout(
                                                contents: {
                                                  a!dateField(
                                                    label: "TPS Need Date:",
                                                    labelPosition: "ABOVE",
                                                    helpTooltip: "When TPS is needed by.",
                                                    value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{e58bfbb2-7937-4018-badb-7dcb99407bd5}TPSNeed'],
                                                    saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{e58bfbb2-7937-4018-badb-7dcb99407bd5}TPSNeed'],
                                                    required: true,
                                                    validations: {}
                                                  )
                                                },
                                                width: "NARROW"
                                              ),
                                              a!columnLayout(
                                                contents: {
                                                  a!dateField(
                                                    label: "Proposed End Date:",
                                                    labelPosition: "ABOVE",
                                                    helpTooltip: "Proposed end date for completed work",
                                                    value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{a0d54b00-c10e-4e2e-bdf7-fa7353b672f4}proposedDate'],
                                                    saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{a0d54b00-c10e-4e2e-bdf7-fa7353b672f4}proposedDate'],
                                                    required: true,
                                                    validations: {}
                                                  )
                                                },
                                                width: "NARROW"
                                              )
                                            }
                                          ),
                                          a!columnsLayout(
                                            columns: {
                                              a!columnLayout(
                                                contents: {
                                                  a!paragraphField(
                                                    label: "Task Outline:",
                                                    labelPosition: "ABOVE",
                                                    value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{9b6b98e7-ecce-4faf-8718-b3036ebcff8b}taskOutline'],
                                                    saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{9b6b98e7-ecce-4faf-8718-b3036ebcff8b}taskOutline'],
                                                    refreshAfter: "UNFOCUS",
                                                    height: "SHORT",
                                                    required: true,
                                                    validations: {}
                                                  )
                                                },
                                                width: "NARROW_PLUS"
                                              ),
                                              a!columnLayout(
                                                contents: {
                                                  a!paragraphField(
                                                    label: "Additional Comments:",
                                                    labelPosition: "ABOVE",
                                                    value: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{0c30750a-4d38-477f-81b4-43401237ada2}comments'],
                                                    saveInto: ri!record['recordType!{63733d83-c1fa-4244-bcca-b0ddcccccbf4}DS_TPS.fields.{0c30750a-4d38-477f-81b4-43401237ada2}comments'],
                                                    refreshAfter: "UNFOCUS",
                                                    height: "SHORT",
                                                    required: true,
                                                    validations: {}
                                                  )
                                                },
                                                width: "NARROW_PLUS"
                                              )
                                            }
                                          ),
                                          a!buttonLayout(
                                            primaryButtons: {
                                              a!buttonWidget(
                                                label: "Submit",
                                                submit: true,
                                                size: "SMALL",
                                                style: "PRIMARY",
                                                loadingIndicator: true
                                              )
                                            },
                                            secondaryButtons: {
                                              a!buttonWidget(
                                                label: "Cancel",
                                                value: true,
                                                saveInto: ri!cancel,
                                                submit: true,
                                                style: "NORMAL",
                                                validate: false()
                                              )
                                            }

                                          )
                                        },
                                        width: "WIDE_PLUS"
                                      )
                                    }
                                  )
                                },
                                isCollapsible: true,
                                isInitiallyCollapsed: true,
                                divider: "ABOVE",
                                dividerWeight: "MEDIUM"
                              )
                            },
                            width: "WIDE_PLUS"
                          )
                        },
                        height: "AUTO",
                        showWhen: if(
                           a!isNotNullOrEmpty(
                             local!RequestType
                             ),(local!RequestType = 5),
                          false()
                             ),
                        style: "NONE",
                        shape: "SEMI_ROUNDED",
                        padding: "LESS",
                        marginBelow: "STANDARD",
                        showShadow: true,
                        decorativeBarPosition: "START",
                        decorativeBarColor: "#666666"
                      )
                    },
                    width: "WIDE_PLUS"
                  )
                }
              )
            },
            width: "WIDE_PLUS"
          )
        }
      )
      

    },
    buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: cons!ASK_TEXT_LABEL_SUBMIT,
          saveInto: {
            if(
              local!company = 1,
              a!save(
                ri!request.companyName,
                cons!ASK_TEXT_LABEL_AXIOM
              ),
              {}
            ),
            if(
              local!requestFor = 1,
              a!save(
                ri!request.recipient,
                rule!ASK_firstLastNameFromUsername(loggedInUser())
              ),
              {}
            )
          },
          submit: true,
          style: "PRIMARY",
          loadingIndicator: true
        )
      },
      secondaryButtons: {
        a!buttonWidget(
          label: cons!ASK_TEXT_LABEL_CANCEL,
          value: true,
          saveInto: { ri!cancel },
          submit: true,
          style: "NORMAL",
          validate: false
        )
      }
    )
  )
)

  Discussion posts and replies are publicly visible