-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FORMS-16351 Support for string in file attachment (#1418)
* initial check in * Adding test collateral * FORMS-16351 Support for string in file attachment @review @vdua DOD(Yes) * Adding field description for type string * Adding test collateral * updating field description * Adding read attachments * moving to released version * @releng updating af-core
- Loading branch information
Showing
21 changed files
with
707 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...t/dam/formsanddocuments/core-components-it/samples/fileinput/fileinputstring/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal" | ||
jcr:mixinTypes="[rep:AccessControllable]" | ||
jcr:primaryType="sling:Folder" | ||
lcFolder="{Long}0" | ||
type="lcFolder" | ||
/> |
23 changes: 23 additions & 0 deletions
23
...formsanddocuments/core-components-it/samples/fileinput/fileinputstring/basic/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:dam="http://www.day.com/dam/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" | ||
jcr:primaryType="dam:Asset"> | ||
<jcr:content | ||
jcr:lastModified="{Date}2023-01-25T17:24:29.344+05:30" | ||
jcr:primaryType="dam:AssetContent" | ||
sling:resourceType="fd/fm/af/render" | ||
guide="1" | ||
type="guide"> | ||
<metadata | ||
fd:version="2.1" | ||
jcr:primaryType="nt:unstructured" | ||
allowedRenderFormat="HTML" | ||
author="admin" | ||
availableInMobileApp="{Boolean}false" | ||
dorTemplateChanged="Boolean" | ||
dorType="none" | ||
formmodel="none" | ||
hasCustomThumbnail="{Boolean}false" | ||
themeRef="/libs/fd/af/themes/canvas" | ||
title="File Input (String)"/> | ||
</jcr:content> | ||
</jcr:root> |
5 changes: 5 additions & 0 deletions
5
...r_root/content/forms/af/core-components-it/samples/fileinput/fileinputstring/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal" | ||
jcr:mixinTypes="[rep:AccessControllable]" | ||
jcr:primaryType="sling:Folder" | ||
hidden="true"/> |
89 changes: 89 additions & 0 deletions
89
.../content/forms/af/core-components-it/samples/fileinput/fileinputstring/basic/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" | ||
jcr:primaryType="cq:Page"> | ||
<jcr:content | ||
cq:deviceGroups="[mobile/groups/responsive]" | ||
cq:lastModified="{Date}2023-01-25T17:24:29.344+05:30" | ||
cq:lastModifiedBy="admin" | ||
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2" | ||
jcr:language="en" | ||
jcr:primaryType="cq:PageContent" | ||
jcr:title="File Input (String)" | ||
sling:configRef="/conf/forms/core-components-it/samples/fileinput/fileinputv3/basic/" | ||
sling:resourceType="forms-core-components-it/components/page-fileinputv3"> | ||
<guideContainer | ||
fd:version="2.1" | ||
jcr:lastModified="{Date}2023-01-17T16:29:57.778+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="forms-components-examples/components/form/container" | ||
actionType="forms-core-components-it/customsubmission/logsubmit" | ||
dorType="none" | ||
fieldType="form" | ||
prefillService="Core Custom Pre-fill Service" | ||
textIsRich="true" | ||
thankYouMessage="Thank you for submitting the form." | ||
thankYouOption="page"> | ||
<fileinput1 | ||
jcr:lastModified="{Date}2023-01-24T16:47:36.882+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="File Input - File[]" | ||
sling:resourceType="core/fd/components/form/fileinput/v3/fileinput" | ||
accept="[audio/*, video/*, image/*, text/*, application/pdf]" | ||
buttonText="Attach Files" | ||
fieldType="file-input" | ||
multiSelection="true" | ||
name="fileinput1" | ||
type="file" | ||
visible="{Boolean}true"/> | ||
<fileinput2 | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="File Input - String" | ||
sling:resourceType="core/fd/components/form/fileinput/v3/fileinput" | ||
accept="[audio/*, video/*, image/*, text/*, application/pdf]" | ||
fieldType="file-input" | ||
name="fileinput2" | ||
type="string"/> | ||
<fileinput3 | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="File Input - File" | ||
sling:resourceType="core/fd/components/form/fileinput/v3/fileinput" | ||
accept="[audio/*, video/*, image/*, text/*, application/pdf]" | ||
description="This is long description" | ||
fieldType="file-input" | ||
name="fileinput3" | ||
tooltip="This is short description" | ||
tooltipVisible="true" | ||
type="file"/> | ||
<fileinput4 | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="File Input - String[]" | ||
sling:resourceType="core/fd/components/form/fileinput/v3/fileinput" | ||
description="This is long description" | ||
fieldType="file-input" | ||
accept="[audio/*, video/*, image/*, text/*, application/pdf]" | ||
name="fileinput4" | ||
tooltip="This is short description" | ||
multiSelection="true" | ||
type="string"/> | ||
<submit | ||
jcr:lastModified="{Date}2023-01-17T16:28:58.844+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Submit" | ||
sling:resourceType="forms-components-examples/components/form/actions/submit" | ||
buttonType="submit" | ||
dorExclusion="true" | ||
fieldType="button" | ||
name="submit1673953138924"> | ||
<fd:rules | ||
fd:click="[{"nodeName":"ROOT"\,"items":[{"nodeName":"STATEMENT"\,"choice":{"nodeName":"EVENT_SCRIPTS"\,"items":[{"nodeName":"EVENT_CONDITION"\,"choice":{"nodeName":"EVENT_AND_COMPARISON"\,"items":[{"nodeName":"COMPONENT"\,"value":{"id":"$form.button1667450213112"\,"type":"BUTTON"\,"name":"button1667450213112"}}\,{"nodeName":"EVENT_AND_COMPARISON_OPERATOR"\,"choice":{"nodeName":"is clicked"\,"value":null}}\,{"nodeName":"PRIMITIVE_EXPRESSION"\,"choice":null}]}\,"nested":false}\,{"nodeName":"Then"\,"value":null}\,{"nodeName":"BLOCK_STATEMENTS"\,"items":[{"nodeName":"BLOCK_STATEMENT"\,"choice":{"nodeName":"SUBMIT_FORM"\,"items":[]}}]}]}}]\,"isValid":true\,"enabled":true\,"version":1\,"script":["submitForm()"]\,"eventName":"Click"\,"ruleType":""\,"description":""}]" | ||
jcr:primaryType="nt:unstructured"/> | ||
<fd:events | ||
jcr:primaryType="nt:unstructured" | ||
click="[submitForm()]"/> | ||
</submit> | ||
</guideContainer> | ||
</jcr:content> | ||
</jcr:root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.