Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update format error #2518

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions modules/pages-and-forms/pages/manage-control-in-forms.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -180,25 +180,10 @@ Therefore, from the palette on the left, drag and drop two *text* widgets in thi
To put the text and the background in red, add the bootstrap's _text-danger_ and _bg-danger_ CSS classes in the *CSS classes* property for both widgets.
To hide these fields when no error are detected, go to the *Hide* property of each widget, click on *f(x)* to make them evaluated as expressions, and add respectively:

* {blank}
+
[cols=3*]
|===
| _!errorRequired
|
| errorRequired.length === 0_
|===

* {blank}
+
[cols=3*]
|===
| _!errorDate
|
| errorDate.length === 0_
|===
* !errorRequired || errorRequired.length === 0
* !errorDate || errorDate.length === 0

... as shown here:
as shown here:

image:images/errorPanelFragment-required-properties.png[Leave Request - errorPanel - required - properties] image:images/errorPanelFragment-date-properties.png[Leave Request - errorPanel - date - properties]

Expand Down