How can I copy the value of one field into another during a node edit?
I'm trying to take the value of a text field and have it populate the title field. I'm thinking I can use the Ajax framework and $form_state
, but I haven't quite got it yet. Or, is there a way to do this on submission? The Title field is hidden so Ajax isn't required.
In case this helps, the scenario is this: user edits a node, fills in one text field and that value automatically populates the Title field in addition to the current field.