# Add Two Fields Using the Submit Buttion

**URL:** <https://discuss.workflowgen.com/t/add-two-fields-using-the-submit-buttion/997>\
**Category:** Workflow Designer\
**Created:** [March 16, 2018, 6:25pm UTC](https://discuss.workflowgen.com/t/add-two-fields-using-the-submit-buttion/997 "2018-03-16T18:25:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![athomas](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@athomas](https://discuss.workflowgen.com/u/athomas)\
**Post date:** [March 16, 2018, 6:25pm UTC](https://discuss.workflowgen.com/t/add-two-fields-using-the-submit-buttion/997/1 "2018-03-16T18:25:41Z")

</div>

I’m trying to add two fields using the submit button. In the code behind, I have…

```
protected void MySubmitButton_Click(object sender, EventArgs e) 
    {      
        if(CurrentWorkflowActionName == "INITIATE_REQUEST"){
            int total = Int32.Parse(ExtFieldTripRequest_MaleStudentsEligible.Text.ToString()) + Int32.Parse(ExtFieldTripRequest_FemaleStudentsEligible.Text.ToString());
            ExtFieldTripRequest_NoStudentsEligible.Text = total.ToString();
        }
        
    }

```

but the ExtFieldTripRequest\_NoStudentsEligible.Text field remains blank. Can you tell me if you code is in error? I’m just not sure why this method is not firing.

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [March 16, 2018, 6:31pm UTC](https://discuss.workflowgen.com/t/add-two-fields-using-the-submit-buttion/997/2 "2018-03-16T18:31:55Z")

</div>

Hi Andre,

Kindly open a ticket in our Helpdesk system so I can assist you with this issue.

Best Regards,  
Eddy.
