Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
if you do not SAVE the stack after emptying the field, it will open again in the state of the last SAVE.
Same with standalones, which cannot save themselves at all.
So just empty the field "on preopencard" or even "on preopenstack" and noone will be able to tell the difference!
on preOpenCard
set the text of fld f1 to 10
set the text of fld f2 to empty
end preOpenCard
When I open the stack and change f1 let's say to 20 and fill f2 with "xyz", then save, close and reopen, f1 shows value 10 (which is what I want) but f2 is not empty, it shows "xyz".
Are you sure you have no other handlers in play? It sure seems that what you have should work just fine. I will be shocked if this is a real anomaly. The handler is just too simple and direct.
Your answers indicate that this should not be . So I double double checked everything and discovered having a typo in the name of the second Field. It's working fine now, thanks and sorry for the fuss!