OpenPromptΒΆ
-
/libs/granite/ui/components/coral/foundation/form/responses/openprompt
OpenPrompt
is success response handler that shows a prompt to the user to open a resource. This is mainly used in creation form, where the user is given a choice to open the newly created resource.It is implemented in the client by foundation.form.response.ui.success: foundation.prompt.open.
It has the following content structure:
-
granite:FormResponsesOpenPrompt
- granite:commonAttrs
- openstringel
The URI Template to open the resource.
- redirectstringel
The URI Template for redirection.
- jcr:titlestring
- i18n
The title of the prompt.
- textstring
- i18n
The text of the prompt.
Example:
+ myform - sling:resourceType = "granite/ui/components/coral/foundation/form" - method = "post" - action = "/my/new/resource" - foundationForm = true + successresponse - sling:resourceType = "granite/ui/components/coral/foundation/form/responses/openprompt" - open = "/bin/wcmcommand?cmd=open&_charset_=utf-8&path={Path}" - redirect = "/sites.html${granite:encodeURIPath(requestPathInfo.suffix)}" - jcr:title = "Site Created" + items + field1 + field2
-
granite:FormResponsesOpenPrompt