# Text Field - Text value clears after loosing focus

**URL:** <https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 22, 2026, 11:40am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194 "2026-04-22T11:40:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcurrie](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jcurrie](https://forum.inductiveautomation.com/u/jcurrie)\
**Post date:** [April 22, 2026, 11:40am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/1 "2026-04-22T11:40:29Z")

</div>

The ignition String tag binds perfectly fine to S71200 PLC tag while displaying the correct value. As soon as I change the text field value in ignition and click outside the text field, the value is cleared along with writing and empty string to the PLC tag.

Correcting the String value in the PLC shows up again in ignition, but continues to clear when writing back to the PLC.

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [April 23, 2026, 11:58am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/2 "2026-04-23T11:58:45Z")

</div>

Which driver are you using?

---

<div class="post-metadata">

**Author:** ![jcurrie](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jcurrie](https://forum.inductiveautomation.com/u/jcurrie)\
**Post date:** [April 27, 2026, 2:42am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/3 "2026-04-27T02:42:54Z")

</div>

> [@David\_Stone](#):
>
> hich driver are you using?

Hi David,

I'm using the Siemens S7-1200 Driver

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [April 27, 2026, 3:11am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/4 "2026-04-27T03:11:02Z")

</div>

Can you share the DB you are writing to, and the setup of the tag address?

---

<div class="post-metadata">

**Author:** ![jcurrie](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jcurrie](https://forum.inductiveautomation.com/u/jcurrie)\
**Post date:** [April 27, 2026, 8:44am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/5 "2026-04-27T08:44:29Z")

</div>

The Velocity String is cleared after focus has been removed.

 ![Ignition Designer](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d536380462d71607d79dcfc69bd9534c7075382.png)

 ![DB49](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/0877144884f69f2559998b44b09ae5a5a6bad500.png)

Database is SQL Server

 ![SQL DB](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d07f1f0b1458b939a69cfeab6c10365a65fbca9f.png)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [April 28, 2026, 8:44am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/6 "2026-04-28T08:44:45Z")

</div>

> **[Data Types​ - Siemens | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/7.9/opc-ua-and-device-connections/siemens#data-types)**
>
> The Siemens drivers in Ignition support basic connections to S7 devices. Ignition connects to these PLCs via TCP/IP using the S7 protocol. Similar to Modbus and some Allen Bradley connections, the Siemens S7 devices do not support tag browsing. You...

If you look in the link, the correct address is `STRING.LEN`  
A string in siemens is always starting at the start of a whole byte/word, so there is no need for a bit marker. Instead, you omit the`.0` shown in the offset column in the DB. The number after the `.` is the length in characters. The string you show is 256 length, which is longer than the 210 characters able to be accessed by the siemens driver.

You can try:  
`[Applicator - Safety]DB49.STRING256`  
`[Applicator - Safety]DB49.STRING256.200`

---

<div class="post-metadata">

**Author:** ![jcurrie](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jcurrie](https://forum.inductiveautomation.com/u/jcurrie)\
**Post date:** [April 28, 2026, 10:32am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/7 "2026-04-28T10:32:51Z")

</div>

Lengend! The dot notation for STRING LEN was where I went wrong.

Thanks heaps.

---

<div class="post-metadata">

**Author:** ![jcurrie](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jcurrie](https://forum.inductiveautomation.com/u/jcurrie)\
**Post date:** [April 28, 2026, 10:36am UTC](https://forum.inductiveautomation.com/t/text-field-text-value-clears-after-loosing-focus/115194/8 "2026-04-28T10:36:19Z")

</div>

[Applicator - Safety]DB49.STRING256.200

STRING256 is the DB starting byte address.

STRING256.200 is the number chars writing to the PLC, therefore STRING256.0 was writing 0 chars to the PLC, hence the blank values.
