LrView edit_field placeholder_string broken in Lightroom Classic CC

  • 2
  • Problem
  • Updated 1 month ago
  • In Progress
Lightroom 7.x broke the ability to show placeholder_string in text input fields created by LrView.osFactory():edit_field and password_field.

This is visible e.g. in Hard drive publish service description fields, first Lightroom Classic CC 7.3.1 and then Lightroom 5.7.1 (sadly I couldnt run 6.14 concurrently with latest release, all I got was error 1 on startup) 

LR 7.3.1:

LR 5.7.1

As you can see, the placeholder string "Untitled export" is not visible in Classic CC, and so are not any other placeholder_strings.  I think this used to work fine in 6.x, and I've used for example login/password fields in my plugins.  Now the users are pretty confused because all they see is empty text field.

Tested on Lightroom 7.3.1, macOS 10.13.4.  Sorry, didn't try it on Windows.
Photo of Jarno Heikkinen

Jarno Heikkinen

  • 27 Posts
  • 6 Reply Likes

Posted 4 months ago

  • 2
Photo of John R. Ellis

John R. Ellis, Champion

  • 3728 Posts
  • 976 Reply Likes
Here's a small script that shows the problem:
local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local f = LrView.osFactory()
local result = LrDialogs.presentModalDialog {title = "Placeholder", 
    contents = f:edit_field {placeholder_string = "My placeholder"}}
This script works on Macos 10.13.4 / LR 2015.14 (6.14).  

This script doesn't work on Macos 10.13.4 / LR 7.2, LR 7.3.1;  Windows 10 / LR 7.3.1.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14149 Posts
  • 1765 Reply Likes
Thanks. I've asked engineering to investigate
Photo of Jarno Heikkinen

Jarno Heikkinen

  • 27 Posts
  • 6 Reply Likes
LR 7.5 on Mac, placeholder still doesn't work.