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.dataas a function to write theall_namevaluefield().input()and apply akeyup changeevent listener to thenameandlast_nameinputs that will then usefield().val()to set the value of theall_namefield.Allan