mergeFormElements: Combine HTML form elements

mergeFormElementsR Documentation

Combine HTML form elements

Description

This function combines the contents of an HTML form element with existing information for that named element. This integerates the possible options, the default/selected values to combine the different HTML elements into a single R object. The function finds the corresponding element in the existing set given by elements and adds the information in el with that element in elements.

Usage

mergeFormElements(el, elements, name = el$name)

Arguments

el

the HTMLFormElement to be integrated with the values already gathered from the form in elements

elements

a named list of previously collected HTMLFormElements

name

the identifier to determine which element in elements corresponds to el. It is very rare that one would specify this differently from the default value.

Value

The original list elements with the new information merged from el. One typically assigns the return value from this function to the variable used as the input for elements.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

See Also

link{htmlSelectElement} link{htmlTextAreaElement} link{htmlInputElement}


omegahat/RHTMLForms documentation built on Nov. 29, 2023, 12:36 a.m.