# String widget non empty validation

**URL:** <https://forum.knime.com/t/string-widget-non-empty-validation/84297>\
**Category:** KNIME Server\
**Created:** [November 6, 2024, 9:21pm UTC](https://forum.knime.com/t/string-widget-non-empty-validation/84297 "2024-11-06T21:21:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsandinoIQ](https://forum-cdn.knime.com/user_avatar/forum.knime.com/lsandinoiq/32/58826_2.png) [@lsandinoIQ](https://forum.knime.com/u/lsandinoIQ)\
**Post date:** [November 6, 2024, 9:21pm UTC](https://forum.knime.com/t/string-widget-non-empty-validation/84297/1 "2024-11-06T21:21:48Z")

</div>

Hello

I am developing a DataApp where a form must be filled out whose fields cannot be empty. How do I make the flow does not continue until all the fields are filled? Mainly String Widgets and Autocomplete Text Widgets?

I am also iterating the interface to fill the form as many times as necessary.

Thanks

---

<div class="post-metadata">

**Author:** ![gonhaddock](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gonhaddock/32/35425_2.png) [@gonhaddock](https://forum.knime.com/u/gonhaddock)\
**Post date:** [November 7, 2024, 8:34am UTC](https://forum.knime.com/t/string-widget-non-empty-validation/84297/2 "2024-11-07T08:34:28Z")

</div>

Hello @lsandinoIQ  
I’m just brainstorming, but I guess you can create a variable saying -IF any of this fields is blank THEN “bottom” ELSE “top”- and then use it in an ‘IF Switch’ node.

In the upper port you can connect the collecting success case workflow. And the lower carries to a twin dashboard with alternative warnings on it.

Be aware of locating the refresh button after the collecting data widgets, so the user doesn’t need to restart infilling the form.

BR

---

<div class="post-metadata">

**Author:** ![lsandinoIQ](https://forum-cdn.knime.com/user_avatar/forum.knime.com/lsandinoiq/32/58826_2.png) [@lsandinoIQ](https://forum.knime.com/u/lsandinoIQ)\
**Post date:** [November 7, 2024, 2:00pm UTC](https://forum.knime.com/t/string-widget-non-empty-validation/84297/3 "2024-11-07T14:00:26Z")

</div>

Hi @gonhaddock  
It usually works great but when I have to iterate the interface that solution doesn’t work. When you go to the warning view and try to go back to fill the blanks, the workflow restart the loop and you lose the information collected by the loop.

This is a view of my workflow at the moment

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/c/3/c3ccc8421f7e88a760b0222d075760edd2b453fc.png)

What I think I’m looking for is a way to validate the targets before exiting the iteration.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 5, 2025, 2:01pm UTC](https://forum.knime.com/t/string-widget-non-empty-validation/84297/4 "2025-02-05T14:01:12Z")

</div>

Closed on February 5, 2025, 2:01pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
