On Click Action not saving

On Click Action not saving

Hello,

In my Tool Tracking V2 application I am trying to setup my submit button. When I select the "Action on Click" option of the sumbit button, adn enter the following code it will NOT save. I do not receive any errors when i save it. However every time I go back to verify the code is there it is NOT.

  1. form  Data_Entry
    {
        displayname  =  "Data Entry"
        store data in zc = false
        field alignment = left
       
        must  have  District
        (
            type  =  picklist
            values  =  District_List.District
            width  =  206px
        )

        must  have  Hours
        (
            type  =  number
            width  =  100px
        )

        must  have  Max_RMS
        (
            displayname  =  "Max RMS"
            type  =  number
            width  =  100px
        )

        must  have  Max_PEAK
        (
            displayname  =  "Max PEAK"
            type  =  number
            width  =  100px
        )

        Component_One
        (
            displayname  =  "Component One"
            type  =  picklist
            values  =  Tool_List.Description
            width  =  206px
            on user input
            {
                if (input.Component_One  ==  "EM4_Pulser_Assembly")
                {
                    insert into EM4_Pulser_Assembly
                    [
                        District = input.District
                        Service_Hours = input.Hours
                        Service_Max_RMS_Vibes = input.Max_RMS
                        Service_PEAK_Vibes = input.Max_PEAK
                        Serial_Number = input.Component_One_Serial_Number
                        Added_User = zoho.loginuser
                    ]
                }
                else if (input.Component_One  ==  "MP4_Control_Driver_Assembly")
                {
                    insert into MP4_Control_Driver_Assembly
                    [
                        District = input.District
                        Service_Hours = input.Hours
                        Service_Max_RMS_Vibes = input.Max_RMS
                        Service_PEAK_Vibes = input.Max_PEAK
                        Serial_Number = input.Component_One_Serial_Number
                        Added_User = zoho.loginuser
                    ]
                }
            }
        )

        Component_One_Serial_Number
        (
            displayname  =  "Component One Serial Number"
            type  =  picklist
            values  =  Serial_Number_List.Serial_Number
            allow new entries = true
            [
                displayname = "Add Serial Number"
            ]
            width  =  206px
        )

        Component_Two
        (
            displayname  =  "Component Two"
            type  =  picklist
            values  =  Tool_List.Description
            width  =  206px
            on user input
            {
                if (input.Component_Two  ==  "EM4_Pulser_Assembly")
                {
                    insert into EM4_Pulser_Assembly
                    [
                        District = input.District
                        Service_Hours = input.Hours
                        Service_Max_RMS_Vibes = input.Max_RMS
                        Service_PEAK_Vibes = input.Max_PEAK
                        Serial_Number = input.Component_One_Serial_Number
                        Added_User = zoho.loginuser
                    ]
                }
                else if (input.Component_Two  ==  "MP4_Control_Driver_Assembly")
                {
                    insert into MP4_Control_Driver_Assembly
                    [
                        District = input.District
                        Service_Hours = input.Hours
                        Service_Max_RMS_Vibes = input.Max_RMS
                        Service_PEAK_Vibes = input.Max_PEAK
                        Serial_Number = input.Component_One_Serial_Number
                        Added_User = zoho.loginuser
                    ]
                }
            }
        )

        Component_Two_Serial_Number
        (
            displayname  =  "Component Two Serial Number"
            type  =  picklist
            values  =  Serial_Number_List.Serial_Number
            allow new entries = true
            [
                displayname = "Add Serial Number"
            ]
            width  =  206px
        )

        actions
        {
            Submit
            (
                type  =  submit
                displayname  =  "Submit"
            )
            Reset_Fields
            (
                type  =  reset
                displayname  =  "Reset Fields"
            )
        }
    }














































































































































Thank you in advance for your time.

Jason Rapp