[New Feature] Auto-binding inputs

We just pushed a feature that will help you save quite some time when building forms and simplify your apps. You can now bind an input to a field of thing.

Very often, you’ll find yourself building a form to modify an existing thing in the database, usually the thing of the group or the page. That means defining the initial content as ‘Parent Element’s thing’s field’, and then having workflows when the user changes the content of the input.

Now, you can select “Enable auto-binding on parent element’s thing” as the input level. If the input is in a group or a page that contains a thing (group coming before the page), you’ll be able to select which field you want to modify. Doing so, the input will automatically use the field value as the initial content, and will update the thing as the user changes the value of the input.

Please note that this feature requires a special permission in the privacy tab. As it doesn’t use the workflow engine, modifying things that way requires you to define who can modify which field for a given thing (usually the creator, etc.). If the privacy isn’t met, you’ll see an error message.

20 Likes

Important time-saving for our new forms + less errors !
Pretty cool :slight_smile:

1 Like

awesome! thanks a lot ! :slight_smile:

@emmanuel would you mind sharing an example of a use of case?

This is what I understand: so let´s say you have an already created client on the database and next to the client you´ve a button to edit the client for example, so when you click on that edit button it goes to the edit client page with the client data on it as initial content so you can edit the information.

With this auto binding feature you bind the name of the client to the database field “nameofclient”. Then if a user modifies this field on the edit client page, it get´s automatically updated on the database without having to click on the “save” button?

Thanks.

Hello guys,

I´m playing a little bit with this auto-binding new feature but I´m getting an error that I don´t have permission to modify it even though I´ve configured.

Could anyone help with this?

Can you share a run mode link? we need an id in the URL

Sure,

Well that’s the problem. Look at the URL. It’s a sample ID when you preview the page, but it should be an ID with some numbers in real life.

You´re right,

That´s not the URL. It´s this one: https://mynewtestapp.bubbleapps.io/version-test/clientes_edit/1463417357004x787748956266823700?debug_mode=true

Well look at the privacy rules. You only enable logged in users to use auto binding.

I’ve tried “Mynewtestapp” so that I could figure out what “Auto-bind” does. But when I click the button, nothing happens.

@ryanck do you mind explaining to me what is supposed to happen?

Thanks in advance

I´ve changed to this client is not empty but nothing @emmanuel

How does it work?

Thanks a lot.

Don´t really know what should happen I´m figuring out,

@emmanuel will tell us soon.

Just tested now and it works but it´s slower than the workflow right?

Also what if I want to bind it but not make any modifications till the user hits the “save” button on a page? I mean the binding will be great show the client information for example for editing but it won´t be modified in the database till the user hits the save button.

Is it possible?

Thanks.

It’s actually faster, because there are less steps than a workflow. Why does it feel slower? In general, changes are reflected immediately anyway on the screen, so which lowliness are you talking about?

If you want to use save, just don’t use this new feature, and use the values of the inputs for display purposes.

2 Likes

This is really great…

For those who always create their bolean the wrong way, it’d be pretty cool to have the option to invert the value of the component when binding with the stored data.

I think I mixed concepts here so let me dig in a bit more.

Thanks for your reply.

@emmanuel can you enable this for search inputs as well?

It’s a bit trickier there. I’ll think about it.

Just added that.

7 Likes