getHTTPFormFields()

Description

Gets text fields in the web form which will be sent to the server along with the images.

Syntax

ImageViewerObject.io.getHTTPFormFields();

Return value

<JSON>

Remarks

The default value of the property is {}. JSON format:{"fieldName": "fieldValue", "fieldName": "fieldValue",...}

When an error occurs, check getErrorCode() or getErrorString() for error information.

Example

             var imageviewer = DCSObject.getImageViewer("ImageViewerContainer");  // Get a specified image viewer
             imageviewer.ui.setHTTPFormFields({"Author":"Tom", "Description":"Personal file"});
             var formfields = imageviewer.ui.getHTTPFormFields();  
             var author = formfields.Author;
             var description = formfields.Description;
      

See also

.io.setHTTPFormFields()
.io.httpUpload()
.io.httpUploadAsync()

Is this page helpful?

Leave a Reply

Your email address will not be published.