setFormValue

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

Sets both the state and submission value of internals's target element to value.

If value is null, the element won't participate in form submission.

MDN Reference


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