Fantasy Grounds Fridays Pre
  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
    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?-Idea Informer

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

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
PF2E Playlist

Log in

Log in