MCPcopy Create free account
hub / github.com/cryptii/cryptii / getFieldValue

Method getFieldValue

src/Form.js:116–122  ·  view source on GitHub ↗

* Returns named field value. * @param {string} name Field name * @throws {Error} If no field is assigned to given field name. * @return {mixed} Field value

(name)

Source from the content-addressed store, hash-verified

114 * @return {mixed} Field value
115 */
116 getFieldValue (name) {
117 const field = this.getField(name)
118 if (field === null) {
119 throw new Error(`There is no field assigned to the name '${name}'.`)
120 }
121 return field.getValue()
122 }
123
124 /**
125 * Sets named field.

Callers 2

Form.jsFile · 0.80
getSettingValueMethod · 0.80

Calls 2

getFieldMethod · 0.95
getValueMethod · 0.45

Tested by

no test coverage detected