Repeated group, default value seems working only for the first record of the group

Status
Not open for further replies.

Borox

Member
Hi,

On the form I put these values:
upload_2017-3-9_10-52-59.png
I put that in the default value of one of the fields:

upload_2017-3-9_10-54-10.png

The result in the table :

upload_2017-3-9_10-55-36.png

It seems that the default value applies only to one record of the group.

Thanks for your help.
 
I think that's to do with the 'add' ACL on the hidden elements with the defaults. Try setting that ACL to something the front end user has.

I know it shouldn't be necessary, and defaults should be applied regardless of ACL, but repeat groups get kind of complicated, so for now that might have to be your workaround.

-- hugh
 
I tried... I changed the ACL on the hidden elements ( I put them to 'public', I don't care, they're hidden :) and you're right! it works. I can delete my ugly workaround ( I put a php plugin to change the values).

Thanks Hugh!
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top