How to Clear a form in Outsystems ODC

How to Clear a form in Outsystems ODC

People creation takes more time than destruction ever could, and this became the soul of proverbs like “Rome wasn’t built in a day, but burned in one.”

But when you are a developer, you can relate to the fact that building takes time, but destroying takes effort, and sometimes it could prove to be one of the most difficult things to do.

And in this blog, we are going to discuss on one such destruction, which could be a bit too tricky for beginners, and that is data clearance from a filled form in ODC.

But before we start, let’s first understand what we are going to discuss in this blog.

Now that we have structured the blog, let’s dive into the problem again.

What is OutSystems?

Before we discuss about how to remove all the information from a form, let’s first understand what is OutSystems.

OutSystems is a low-code platform that helps developers to develop applications faster and deploy them faster by leveraging the drag-and-drop features and built-in reusable components, so that the developers don’t have to create the same thing again and again.

While OutSystems is a low-code platform, it offers the flexibility of choosing the type of applications, as it can create responsive web and mobile applications; on the other hand, it can also create traditional applications.

So, in other words, we can say that OutSystems is a platform for developers that facilitates the development process with its features and components, while it is also a boon for organisations, as their applications can be delivered faster than they can imagine.

What is ODC?

ODC, also known as OutSystems Developer Cloud, is a cloud-native low-code platform which give liberty the developer to create cloud based application which can ensure that businesses can get scalable, secure and high-performing applications with the speed of low-code.

In simple words, if we say, then ODC is an advanced version of OutSystems, which not only provides the opportunity to build a faster, high-performing cloud application with the benefits of OutSystems partner, AI mentor and even Agentic AI now, so you can thrive in this fast-paced industry with your own application.

To understand more about ODC and O11, do check out the mentioned blog. Difference Between O11 And ODC

How to Clear Data From a Form in ODC

So now all the basics are discussed, let’s get into the main topic, that is, how can a developer clear data from a form in ODC.

Well, when we talk about ODC and O11, clearing data isn’t very different in any of the versions.

Scenario

So the scenario is simple, there is a form that is created to store the information about students. For better understanding, you can look at the Fig 1.

image 2

Fig 1

After filling the form, someone realised that the whole data is wrong, so they wanted to clear the form. There are two main approaches to it.

  1. Clear all the fields manually: Sounds good until the number of fields isn’t just 3-4 but reaches around 40 or 50.
  2. A button to clear: Well, this is the option we are going to discuss today, with the logic you should implement to achieve the result.

Test Case

The case is as clear as you can think.

Let’s suppose there is a form filled with data, just like in Fig 2, and the user wants to clear the form data.

image 2

Fig 2

The user should click on the “Clear”, and the data in the form should be removed.

Logic

If we talk about how to implement it in the backend, then there should be a client action that is triggered by the “Clear” button. Inside, the developer is setting the value of each attribute to null according to their respective data type.

To understand it more clearly, do refer to Fig 3, and after implementing this logic, you can publish the changes, and when you test it, your goal will be achieved.

image 3

Fig 3

Conclusion

As we have discussed, a very basic but most commonly required scenario, we can conclude through this block that you can have easy solutions for difficult problems, while sometimes in the process of development you will see that there are difficult solutions for easy problems as well, but you don’t have to worry about it, because we will keep coming back with solutions of common but tricky problems.

If you liked this blog or wanted to know about these types of knowledgeable and problem-solving articles, then do subscribe to our newsletter.

Happy Coding !!!

Visited 146 times, 1 visit(s) today

Table of Contents

    About Author

    Explore More

    OutSystems Reactive Web Apps: Speed, Cost & 4-Week Build Guide
    Low Code Application Development

    OutSystems Reactive Web Apps: Speed, Cost & 4-Week Build Guide

    Is OutSystems Worth $36K? Pricing vs. Cheaper Alternatives
    Ecommerce Development

    Is OutSystems Worth $36K? Pricing vs. Cheaper Alternatives

    OutSystems vs Bubble: Low-Code Wins for Enterprise Apps
    Technology Compare Low Code Platform

    OutSystems vs Bubble: Low-Code Wins for Enterprise Apps

    OutSystems vs ServiceNow: Which Platform Wins in 2026?
    Technology Compare Low Code Platform

    OutSystems vs ServiceNow: Which Platform Wins in 2026?

    OutSystems vs Salesforce: Which Platform Wins?
    Technology Compare Low Code Platform

    OutSystems vs Salesforce: Which Platform Wins?

    OutSystems vs Mendix: Which Platform Is Right for Complex Backend Logic?
    Technology Compare Low Code Platform

    OutSystems vs Mendix: Which Platform Is Right for Complex Backend Logic?

    OutSystems vs Power Apps: A Feature-by-Feature Breakdown for CTOs
    Technology

    OutSystems vs Power Apps: A Feature-by-Feature Breakdown for CTOs

    OutSystems vs Appian: Best for BFSI Teams
    Compare Low Code Platform Technology

    OutSystems vs Appian: Best for BFSI Teams

    How to Clear a form in Outsystems ODC
    Ecommerce Development

    How to Clear a form in Outsystems ODC

    What is Outsystems Application Object, Why is it Important
    Low Code Application Development

    What is Outsystems Application Object, Why is it Important

    Difference Between Screens and Blocks
    Ecommerce Development

    Difference Between Screens and Blocks

    Top 5 Forge Components for Beginners of OutSystems
    Low Code Application Development

    Top 5 Forge Components for Beginners of OutSystems

    How to Consume REST API in OutSystems
    Low Code Application Development

    How to Consume REST API in OutSystems

    How to Expose REST API In Outsystems
    OutSystems Development

    How to Expose REST API In Outsystems

    Difference Between Server Action And Data Action
    OutSystems Technology

    Difference Between Server Action And Data Action

    OutSystems & Rapid Application Development
    OutSystems Delivery Partners

    OutSystems & Rapid Application Development

    Why Low-Code Development is the Future of Enterprise Software
    Low Code Application Development

    Why Low-Code Development is the Future of Enterprise Software

    Difference Between Screen Actions And Client Actions
    OutSystems Delivery Partners

    Difference Between Screen Actions And Client Actions

    Optimize Your Technical Debt With Outsystems
    Low Code Application Development

    Optimize Your Technical Debt With Outsystems

    Troubleshooting HTTP 502 Bad Gateway in Outsystems
    OutSystems

    Troubleshooting HTTP 502 Bad Gateway in Outsystems