877
Views
6
Comments
Solved
Is Default Button on Reactive Web

In terms of development on the reactive web screens, I want to know if is possible to have a property of Is Default like the traditional web.

On reactive, we got the Is Form Default but if we activate them outside a form launches a warning because the form is missing and if we don't put them don't have the behavior desire like press the enter and that action occurs.

Exists another way to have that behavior instead of using a JS code, or are you thinking to implement that on reactive web equal to the traditional web?

2011-08-23 22-04-05
Tiago Simões
Staff
Solution

Hi João, Fábio,

In those cases you need to put the filters inside a form (that would also be the correct way to do it in standard HTML).

Cheers,

Tiago Simões 


2023-09-26 10-34-09
Cristiana Umbelino

Hi João,

Just out of curiosity, can you give me an example of the use case you have to implement where you'll need a default button outside a form?

Asking this because in order to use the full potential of OutSystems, it's recommended that we use the platform widgets. So if you want to save data that should be done using a Form widget alongside buttons that are "assigned" to that form.

UserImage.jpg
Yahya Eddnadni

hello Cristina,

we would need it if, for example, we have a delete button inside a table that enlists a product's details and we need to delete that product.

please bare in mind that I'm new to the outsystems platform, feel free to correct or guide me if I'm wrong.

2026-03-09 12-26-51
Fábio Fantato
 
MVP

Hi Cristiana,

One use case for that could be the filter block.  In a regular screen where you have an input to filter your table. if you want to put a Search and a Reset button to refresh data only when you trigger the Search button.  In this case, we don´t need a form to put our input, but its wonder if we could have the Default button behavior.




2018-09-25 20-12-57
João Martins Pereira
 
MVP

Hi Cristiana,

Yes I know if we can to use the platform widgets but in this case, it is a simple list screen that got a button of search, a reset and an add record in some cases. So for that reason, we don't need a form.

The objective is a user clicks on enter and instead of click on a random button, just search on the list by the values that are present on the screen.

Like you did on the traditional web when you got true on button Is Default property.

2011-08-23 22-04-05
Tiago Simões
Staff
Solution

Hi João, Fábio,

In those cases you need to put the filters inside a form (that would also be the correct way to do it in standard HTML).

Cheers,

Tiago Simões 


2018-09-25 20-12-57
João Martins Pereira
 
MVP

Hi Tiago,

Thanks for your answer I will do that on my screens for now on. 

Best Regards,

João Pereira 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.