processwire / processwire-requests

ProcessWire feature requests.
40 stars 0 forks source link

signal the presence of a blank AND closed InputField #100

Open szabeszg opened 7 years ago

szabeszg commented 7 years ago

Short description of the enhancement

An extra InputField visibility setting at Field > Input > Visibility would make it possible to easily spot blank fields even when they are in closed state.

Why would the enhancement be useful to users?

There are times when you want to save space, so the InputField is closed, but you still want to be able to quickly identify blank fields in order to decide whether you need to fill them in or not. Such fields are normally not required for all records of the same type, but might be important for a subset of records, that is why being able to spot them easily is important.

Optional: Screenshots/Links that demonstrate the enhancement

Maybe a red icon would do the trick, like this:

blank-closed-inputfield-signal

rolandtoth commented 7 years ago

Thumbs down for the thumb down :) Unfortunately it has different meaning thanks to facebook and others. Perhaps the "∅" character could be used instead of an icon.

Btw isn't the visibility option "Open when populated + Closed when blank" is what you're after? Of course there will be no signal that the field is blank if you collapse it manually.

teppokoivula commented 7 years ago

Two thoughts:

  1. I'm not sure that this really is a core thing. Might be a better fit for a module, at least in the beginning; if it gets a lot of positive feedback, maybe then add to core? Not saying that this is a bad idea, quite the contrary, but I'm not positive that it's something most of our users will end up needing either.

  2. How 'bout a red exclamation sign, wouldn't that translate nicely to "important" or "don't miss this"? :)

rolandtoth commented 7 years ago

I don't think the purpose is to show that the field has any importance but only that it is empty.

szabeszg commented 7 years ago

Sure, "Open when populated + Closed when blank" is closed to my proposal, but not quite the same. "∅" character is a good idea, I was just looking for something in the iconset and could not come up with a good one for this. "exclamation sign" does not seem to be prominent in this size (being slim), so that is why I tried to find an alternative.

Unfortunately I do not have the time to turn this into a module, hence the request ;) But maybe one day when I do have the time (if this idea never gets picked up by Ryan).

Till then I will probably hack it with JS. I only need this for Text inputfield at the moment.

szabeszg commented 7 years ago

"I don't think the purpose is to show that the field has any importance but only that it is empty." Sort of. In my case it can be important in the case of a very few items, but "most of the time" it can be left empty.