how to save data to a hidden extra field
how to save data to a hidden extra field
rrzavaleta
Posts: 78Questions: 52Answers: 2
in Editor
hi allan. in the editor I have three field to use
'''
fields: [ {
label: "name",
name: "name",
},
{
label: "last name ",
name: "last_nme",
},
{
label: "all name",
name: "all_name",
}, ]
I want to do is to fill only two fields "name" and " last_name " , and copy these 2 fields to the field " all_name " . But all_name field is not displayed .
As I can do this in the editor.
This discussion has been closed.
Answers
Sure - two options:
ajax.data
as a function to write theall_name
valuefield().input()
and apply akeyup change
event listener to thename
andlast_name
inputs that will then usefield().val()
to set the value of theall_name
field.Allan