Follow-up to https://forum.backdropcms.org/forum/how-set-values-form:
- When setting the values of a short-text field which is allowed to have multiple values, the first value I set shows up on the form, but the second does not.
I see in the dpm output that there is an 'add_more' form element for that field (the form has an 'Add more' button for additional values) but I don't know if that's relevant to my problem.
- The taxonomy (entity reference) fields have a structure like
$form['taxonomy_vocabulary_1']['und'][0]['target_id'][#default_value]
but setting the value to the term ID doesn't show anything on the form.
I did try saving the form to see if the values are saved even though they don't show up on the form, but they are not. Help?
I did some improvement on the logic in my code and the select-list field is working now. So ... maybe it before wasn't getting to the right place to set the value. Sorry about that! :facepalm: But on the bright side, we can set that aside now.
Also the pictures are for a "normal" multi-valued short-text field, not an entity reference at all.
ETA: This is a kludge, but I can get it to work by copying over the 0th value's settings and then setting the ith value:
I don't know if this might create other problems though.