Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM6.3 coral touch ui pathbrowser

Avatar

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

19 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

19 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
srinivas_chann1
Level 4

18-10-2019

Hi ,

i have path browser marked as mandatory field but since i am doing some java-script manipulation, hence  I need to bypass this and still submit the dialog even if the path field is empty.

Please let me know how this can be achieved.

                                    <videoPath

                                        jcr:primaryType="nt:unstructured"

sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"

granite:id"videopath"

                                        fieldLabel="Video Path"

                                        name="./videoPath"

                                        rootPath="/content/dam"

required="{Boolean}false"

                                        rootTitle="DAM"/>

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

236 likes

Total Posts

251 posts

Correct Reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

236 likes

Total Posts

251 posts

Correct Reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
Theo_Pendle
MVP

20-10-2019

Hi,

I'm sorry but I'm a bit confused by your question. You say the path browser is mandatory but in the XML I can see required="{Boolean}false", so it should not be mandatory, therefore no problem..

However, if you wanted to bypass a mandatory field using JS, you can do so by removing the aria-required="true" attribute from the field in question. This will de-activate the validation and allow you to submit the dialog.

Here is a GIF showing the process to reproduce in JS:

Peek 2019-10-20 12-59.gif

Answers (0)