Starfinder Playlist
  1. #1

    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 ?

  2. #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

  3. #3
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    formattedtext fields are never empty.
    I use something like:
    if string.len(getDatabaseNode().getValue()) <= 8 then getDatabaseNode().setValue("<p>No Info</p>"); end

  4. #4
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in