-
July 4th, 2020, 06:55 #1
- Join Date
- Jun 2020
- Posts
- 6
setEmptyText in formattedtextfield
When using a stringfield I can use the setEmptyText method to define the empty text. This does not seem to work with formattedtextfield since it does not seem to inherit from stringcontrol.
Is there a way to define the empty text of a formattedtextfield ?
-
July 4th, 2020, 11:48 #2
Have you tried using <empty textres=""> tag in the xml and then defined the resource in the strings? That's the method I stick with for most elements
Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
-
July 4th, 2020, 14:36 #3
formattedtext fields are never empty.
I use something like:
if string.len(getDatabaseNode().getValue()) <= 8 then getDatabaseNode().setValue("<p>No Info</p>"); end
-
July 4th, 2020, 21:21 #4
- Join Date
- Jun 2020
- Posts
- 6
Thanks for your ideas ! It gives me new ways to explore
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks