I have a Content type where I do a JSON lookup on a 3rd-party database to pre-fill some of the fields, but cannot figure out how to access the acdx widgets and add the data to them.

I've inserted the values into the original input and autocomplete-deluxe-input--n elements, but this isn't sufficient to set the values.

Any suggestions for how to approach it?

CommentFileSizeAuthor
#1 change value of field.png146.38 KBLNakamura

Comments

LNakamura’s picture

Issue summary: View changes
Status: Active » Fixed
StatusFileSize
new146.38 KB

Hi, @Dave-B - I don't know if you ever figured this out, but you were sure on the right track!

Using the latest 2.x dev version (the 1.x branch is no longer supported), I was able to change the value of an Autocomplete Deluxe widget using the id (autocomplete-deluxe-input--n). Attached is a screenshot showing getting the original value of the field and then changing it from the console.

I'm going to mark this as fixed - let me know if you have any questions!

LNakamura’s picture

One more thing to note: I was able to save the node form and the value I changed from the console persisted.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.