I'm sure that this issue must have been discussed before but could not find it.
I created a textfield that has unlimited values and a default value.
The problem is that only the first instance of the field gets its default value, the rest receive blank.

Comments

yched’s picture

Status: Active » Closed (works as designed)

That's the intended behavior.

andreiashu’s picture

Status: Closed (works as designed) » Active

Hi yched and thanks for your quick response.
I have difficulties understanding why this should be the indented behaviour. Do we have an issue where this was already discussed ? I'm sure that I'm missing something here, but before letting it as it is I really want to understand why the current behaviour is better.

Thanks for your patience.

agileware’s picture

+1 for at least the option to have the default value used for all values of a multi value field.

markus_petrux’s picture

Not really sure what was the idea when default values were not implemented for items added to multiple value fields with the 'Add more values' button, but it might make sense when it gets in the patch #196421: Deleting unwanted multiple values / multiple values delta issues ? ...or maybe just as an option that only appears for multiple value fields?

jeff.k’s picture

+1 I too am looking for defaults to be used. Anyone found a work around?

markus_petrux’s picture

Status: Active » Closed (works as designed)

@andreiashu: at this stage, I think changing the current behavior will affect existing sites, and that's too much at this moment, with more that 100K sites using CCK for D6.

If anyone needs to provide default values, hook_form_alter() can be used. So I'm setting this back to "by design".