How do you get an upload field value after an on-line form is submitted in version 7.0?

HelenaG Grulichova asked on November 20, 2012 01:15

How do you get an upload field value after an on-line form is submitted in version 7.0?

Correct Answer

HelenaG Grulichova answered on November 20, 2012 01:15

The API has slightly changed in version 7.0. How to get on-line form data is described in in the article:  Modifying the code of standard web parts.

The direct uploader field and its value is a little different and you can use the below API to work with this field.

void viewBiz_OnBeforeSave(object sender, EventArgs e)
    {
        // Find uploader in bizform.
        FormEngineUserControl control = (FormEngineUserControl)viewBiz.BasicForm.FieldControls["attachmetField"];
        if (control != null){
           Uploader uploader = (Uploader)control.FindControl(control.InputControlID);
        }
    }

-it-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.