From 4f9eeacc7183cb348cc0c7b4141cfd9b76dd5a1d Mon Sep 17 00:00:00 2001 From: chicoribas Date: Fri, 9 Jul 2021 10:24:13 -0300 Subject: [PATCH] Documentation Signed-off-by: chicoribas --- .../software-templates/writing-templates.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/features/software-templates/writing-templates.md b/docs/features/software-templates/writing-templates.md index 7b475f2fa1..b8a3bc62eb 100644 --- a/docs/features/software-templates/writing-templates.md +++ b/docs/features/software-templates/writing-templates.md @@ -227,6 +227,33 @@ spec: inputType: tel ``` +#### Hide or mask sensitive data on Review step + +Sometimes, specially in custom fields, you collect some data on Create form that +must note be shown to the user on Review step. To hide or mask this data, you +can set some properties of `ui:options`: + +```yaml +- title: Hide or mask values + properties: + password: + title: Password + type: string + ui:widget: password # will print '******' as value for property 'password' on Review Step + masked: + title: Masked + type: string + ui:options: + review: + mask: '' # will print '' as value for property 'Masked' on Review Step + hidden: + title: Hidden + type: string + ui:options: + review: + show: false # wont print any info about 'hidden' property on Review Step +``` + #### The Repository Picker So in order to make working with repository providers easier, we've built a