Hi
i would like to have some fields are just visible when an administrator opens the form.
I'have already done a check for the usergroup and set two data values via databuilder2:
data:admin = true
data:hidden = 0
so i found out that if i will hide a field on page load i have to enter something inside the Hidden Field in the Field Params (Info Tab).
and if i enter there a 0 (not false!) - the field will be displayed, so i tried to put there the Datavalue in this Hidden Field (inside Info Tab the Hidden Field)
but it does not work.

Is there any way to get fields just displayed for administrators?
Background: Its a Registration Form those fields contains the users firstname / lastname which are auto inserted from its joomla account (so they are not necessary to display)
But the Administrator must also be able to create Registration (for reasons...) and then he has to put there the First / Lastname manually and "overwrite" the data .
i would like to have some fields are just visible when an administrator opens the form.
I'have already done a check for the usergroup and set two data values via databuilder2:
data:admin = true
data:hidden = 0
so i found out that if i will hide a field on page load i have to enter something inside the Hidden Field in the Field Params (Info Tab).
and if i enter there a 0 (not false!) - the field will be displayed, so i tried to put there the Datavalue in this Hidden Field (inside Info Tab the Hidden Field)
but it does not work.

Is there any way to get fields just displayed for administrators?
Background: Its a Registration Form those fields contains the users firstname / lastname which are auto inserted from its joomla account (so they are not necessary to display)
But the Administrator must also be able to create Registration (for reasons...) and then he has to put there the First / Lastname manually and "overwrite" the data .
Use a switcher area instead, so the fields won't even exist on the form unless admin.
Good point
but can i duplicate those fields (different id's - same name)? (because they have to exist - we want to have a "static" table even if the Person change its firstname / lastname (And other fields - fn /ln are just examples) later.
Sitcher A:
field id: fn_a name:firstname (hidden and auto filled)
field id:ln_a name:lastname (hidden and auto filled)
Switcher B:
field id: fn_b name:firstname (visible and editable by admin)
field id:ln_b name:lastname (visible and editable by admin)
Edit:
Its working with the logic above
but can i duplicate those fields (different id's - same name)? (because they have to exist - we want to have a "static" table even if the Person change its firstname / lastname (And other fields - fn /ln are just examples) later.
Sitcher A:
field id: fn_a name:firstname (hidden and auto filled)
field id:ln_a name:lastname (hidden and auto filled)
Switcher B:
field id: fn_b name:firstname (visible and editable by admin)
field id:ln_b name:lastname (visible and editable by admin)
Edit:
Its working with the logic above
This topic is locked and no more replies can be posted.