6.0.0-git
2019-12-14

[#6615] New contact and disabled "name" field
Summary New contact and disabled "name" field
Queue Turba
Queue Version Git master
Type Enhancement
State Assigned
Priority 2. Medium
Owners Horde Developers (at) , chuck (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 2008-04-17 (4258 days ago)
Due
Updated 2009-08-02 (3786 days ago)
Assigned 2008-06-12 (4202 days ago)
Resolved
Milestone
Patch No

History
2009-08-02 13:35:29 Michael Rubinsky Version ⇒ Git master
 
2008-06-12 21:09:30 Jan Schneider Type ⇒ Enhancement
State ⇒ Assigned
Priority ⇒ 2. Medium
 
2008-05-13 07:22:04 Thomas Jarosch Comment #12 Reply to this comment
This should probably wait for after the feature freeze since it
didn't get started - yes?
No hurry over here.


2008-05-12 20:55:11 Chuck Hagenbuch Comment #11 Reply to this comment
This should probably wait for after the feature freeze since it didn't 
get started - yes?
2008-04-28 05:00:13 Chuck Hagenbuch Assigned to Chuck Hagenbuch
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
2008-04-27 18:18:04 Chuck Hagenbuch Comment #10 Reply to this comment
Seems like a good system to me, though requires a bit more work to 
determine which are which. I'll work on it.
2008-04-24 14:54:28 liamr (at) umich (dot) edu Comment #9 Reply to this comment
How about showing the composite field (but not the component fields) 
on the display tab.. and showing the component fields (but not the 
composite fields) on the edit tab?
2008-04-23 21:29:28 Chuck Hagenbuch Comment #8 Reply to this comment
Is it possible to define a default field value for new contacts?
It is now. Unfortunately that doesn't completely solve the problem 
since the updating field is initialized onload, so even if you give 
'name' a default value, it gets immediately wiped to '' once the form 
loads, since 'firstname' and 'lastname' are empty.



What about the idea of using CSS to make it not look like a form field?
2008-04-23 16:39:17 thomas (dot) jarosch (at) intra2net (dot) com Comment #7 Reply to this comment
Is it possible to define a default field value for new contacts?



The root of the problem is that the user does not really see that the 
form field is disabled as it's empty by default. If the field would 
contain something like "firstname lastname" and then gets cleared the 
first time a user types something in the firstname field, all would be 
fine.


2008-04-17 20:31:30 Michael Rubinsky Comment #6 Reply to this comment
Not sure what tabs have to do with it?
If you use the optional 'tabs' entry in cfgSources, you can omit the 
'name' attribute from any of the tabs so it will not display.  I know 
it's not the best solution, but was offered as another option if 
nothing else would work. :)


2008-04-17 20:16:22 Chuck Hagenbuch Comment #5 Reply to this comment
Not sure what tabs have to do with it?



I modified Horde_Form_Renderer so that disabled variables are wrapped 
in a class="form-disabled". Can we work with that and CSS to make it 
look like text?
2008-04-17 15:49:15 Michael Rubinsky Comment #4 Reply to this comment
I think the idea is to make it not a text field, right?
Yea, that makes sense, my bad :)



The idea about removing it from the display if your using a tabbed 
display is still an option though.
2008-04-17 15:41:10 Chuck Hagenbuch Comment #3 Reply to this comment
I think the idea is to make it not a text field, right?
2008-04-17 15:39:24 Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
Wouldn't it be more confusing for users to be able to type into a text 
field and have the value ignored or overwritten when the last/first 
name fields are edited?



You could always remove the 'name' field from display if it's really 
bothersome for your users.
2008-04-17 10:02:36 thomas (dot) jarosch (at) intra2net (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ New contact and disabled "name" field
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
Reply to this comment
Hello together,



when you create a new contact, the first thing the user will try is to 
type in the "name" field, which is a composite of firstname, lastname 
and others.

The control is disabled and dynamically updated via Javascript.



Would it be possible to replace the disabled widget by text only

and still update it via Javascript? Other ideas?



Thomas


Saved Queries