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

changing Form model

Avatar

Avatar
Give Back 3
Level 2
formatix
Level 2

Likes

3 likes

Total Posts

30 posts

Correct Reply

2 solutions
Top badges earned
Give Back 3
Give Back
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Give Back 3
Level 2
formatix
Level 2

Likes

3 likes

Total Posts

30 posts

Correct Reply

2 solutions
Top badges earned
Give Back 3
Give Back
Ignite 5
Ignite 3
Ignite 1
View profile
formatix
Level 2

11-02-2018

Is there a way to change the data model from Form Template (xdp)  to a  shema (xsd) after the adaptive form was created?

regards Jan

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
James_R_Green
Level 5

11-02-2018

Hi,

I don't know if it is recommended ... but if you change the "formmodel" attribute from "formtemplates" to "none" at the following location, then you will be able to select a schema rather than an XDP:

/content/dam/formsanddocuments/<form path>/jcr%3Acontent/metadata

Answers (4)

Answers (4)

Avatar

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
James_R_Green
Level 5

12-02-2018

It allows you to swap the xdp reference to a completely different one though e.g. from Test.xdp to ABC.xdp, that would have the same potential problem of leading to binding errors. I think we both agree that changing things in the JCR manually is a last resort, but given a lack of an alternative in the UI it is the workaround I would use.

I would still be keen to get someone from the forms development team's opinion on whether this is something that should be added to the UI.

Avatar

Avatar
Boost 5
Level 2
jagjeetthukral
Level 2

Likes

7 likes

Total Posts

36 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 3
View profile

Avatar
Boost 5
Level 2
jagjeetthukral
Level 2

Likes

7 likes

Total Posts

36 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 3
View profile
jagjeetthukral
Level 2

12-02-2018

I am from Adobe (not from Forms' Engineering Team), so not an official word. But as far as I know changing the Form Model will lead to binding errors on all the bound fields, this may be an important reason to not allow it in first place.

Cheers,

Jagjeet Singh

AEM Forms Blog

Avatar

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
James_R_Green
Level 5

12-02-2018

Perhaps someone from Adobe( smacdonald2008 ?) can comment on why the ui doesn't allow you to change the template reference to a schema  once set and whether this should be raised as a bug.

Avatar

Avatar
Boost 5
Level 2
jagjeetthukral
Level 2

Likes

7 likes

Total Posts

36 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 3
View profile

Avatar
Boost 5
Level 2
jagjeetthukral
Level 2

Likes

7 likes

Total Posts

36 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 3
View profile
jagjeetthukral
Level 2

11-02-2018

Hi James R Green​, formatix​,

First of all that's definitely not a recommended way.

If you still wish to go ahead and change it, please change it in the corresponding form location in /content/forms/af/***//jcr:content/guideContainer node also.

Cheers,

Jagjeet

AEM Forms Blog