setFormValue

fun setFormValue(value: File?, state: File? = definedExternally)(source)

The setFormValue() method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent.

MDN Reference


fun setFormValue(value: String?, state: String? = definedExternally)(source)
fun setFormValue(value: FormData?, state: FormData? = definedExternally)(source)