Is properties.element_id suddenly a thing?

Hi, just posting this to confirm I’m not going mad.

I have a plugin or two which use text fields named “element_id”. Today, they’re broken, as properties.element_id is suddenly returning what I believe is an internal Bubble ID value- for instance #bTHBg2, rather than whatever the user input in the text field. Has Bubble added properties.element_id as a way to retrieve the internal ID of the Bubble element? If so, I would have thought that properties.bubble.element_id would be more appropriate, no?

@emmanuel

Yes we did push a change there (as we’re in beta we’re still refining the API). Having said that we’ll look into fixing this on our end so that it doesn’t conflict with names you define. Sorry about that

Awesome, thanks!

The fix is now live, let us know if it’s not fixed

Will was referring to this page, it still throws some errors https://plugindemos-zeroqode.bubbleapps.io/version-test/tour?debug_mode=true

The bugs here are in the plugin code it seems, not related to element_id.

Strange as it was working before the changes, @dambusmedia Will can you please comment?

Hi @emmanuel, the issue with properties.element_id is fixed but it now looks like we’re seeing another regression:

Looks like any “Dropdown” field type, when used in an Element Action, is returning “undefined”, though it is actually defined. Only seems to affect Dropdown fields in Actions, Dropdown fields in element properties are still working fine.

Here I’ve put together a quick test to show the issue:
Plugin: https://bubble.io/plugin_editor?id=1525700841828x557810622523244540&tab=tabs-4
Demo: https://bubble.io/page?type=page&name=test&id=testcard9876&test_plugin=1525700841828x557810622523244540_current&tab=tabs-1

Edit: To explain the demo, I have an element properties field of type Dropdown named foo. Then I have an action, with a field of type Dropdown named bar.

In function update, doing:

console.log(properties.foo)

returns the selected dropdown string. However in function action, doing:

console.log(properties.bar)

returns undefined, when it should return the dropdown string.

Thanks, pushing a fix now, will be live in 10 minutes or so.

1 Like

All seems to be working fine now. Thanks for the quick responses!