Hiding nodereferrer (read-only) field when initially creating node?
Fayna - January 24, 2008 - 05:03
| Project: | Content Construction Kit (CCK) |
| Version: | 5.x-1.x-dev |
| Component: | fieldgroup.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Is this possible or is it too complicated? As of right now, when I first create nodes with the nodereferrer field in it, it displays the label with nothing below it, which may be confusing for some users.
Maybe it can be hidden when there are no references yet. When at least one reference is made in the nodereferrer field, it can display.
To clarify: I am not talking about "Display fields", which can easily be hidden if need be. It's the node creation form. :/
Thanks for such a great module! :-)

#1
Ah I see my problem... I have two nodereferrer fields in a fieldgroup, and the fieldgroup is showing but not the fields themselves. Sorry about that.
Should I just not put them in a fieldgroup?
#2
Try not putting them in a field group. I think this is an upstream issue with CCK. If moving the node referrer fields from the field group doesn't hide the labels, switch this feature request to CCK with a title along the lines of 'Add a field label display option of hide if empty to display fields.' Otherwise switch it to fieldgroup.module.
#3
Not putting them in a fieldgroup works.
Problem is, fieldgroup.module only hides the form fieldset if there are no form fields in it.
Not sure how we could detect the form element is actually empty.
#4
#5