#Hide fields in create-first-user route but display those fields in admin panel

1 messages · Page 1 of 1 (latest)

latent canyon
#

Hide fields in create-first-user route but display those fields in admin panel

glass perchBOT
spiral spade
#

@latent canyon Good question - I'm not 100% sure, but maybe you could have a boolean field that is set on document creation. Then the fields you want to display after can rely on that initial change.

latent canyon
#

Yeah I tried with hidden but it doesn't work

spiral spade
#

Hidden will hide it in both scenarios

#

But say you have a boolean field

#

"Created" or something

#

and you have a hook for when the document is created

#

you set that boolean to true

#

Then, using the conditional property on fields (which gives you access to siblings), check for the "Created" field

#

does that make sense?