How to hide a input field? #54
Answered
by
ivan-dalmet
lilyntalmers
asked this question in
Q&A
-
How to make a Formiz Input Field hidden?
Example: |
Beta Was this translation helpful? Give feedback.
Answered by
ivan-dalmet
Mar 17, 2021
Replies: 1 comment 3 replies
-
Hello @lilyntalmers Fieldconst FieldHidden = (props) => {
const {
id,
value,
} = useField(props)
return (
<input
id={id}
type="hidden"
value={value || ''}
/>
);
} Usage<FieldHidden name="my-hidden-value" defaultValue="Something" /> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
lilyntalmers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @lilyntalmers
You can create a FieldHidden like this :)
Field
Usage