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

Form Fields Behavior when binded to same DB field in an Adaptive Form

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

116 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

116 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

12-02-2021

Hello Folks,

 

I am a bit confused on how do these Form Fields (when binded to same DB field) work. I have created 2 fragments (let's say Emergency Address and Permanent Address) with FDM and binded properly. These both are actually same in terms of fields and binding, but I just want to bring them up in form as separate sections.

When I am testing  entering data in an textbox (address line) of Emergency Address section, I observed that data is automatically getting populated into textbox (address line) of Permanent Address section. I have no rules written to set value of or something else, but still it is getting changed as and when I try to modify or update.

On deeper investigation, it was found that "fields which are binded to same DB field" are getting same value as input, if you try it either way. This doesn't happen when there is no binding at all (or) if those 2 fields "address line" of each section are binded to different DB fields.

Please correct me if this is expected outcome or If I am doing something wrong.

I don't want to have each field binded to different DB field, instead I am looking at having 2 different form fields bind to same DB field. Provide your suggestions!

 

Regards,

Sri Bhargav

AEM Forms AEM Forms Designer FormsService

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

116 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

116 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

15-02-2021

We actually don't need binding for form fields here, since we are not using Submit Action Button, instead we are Invoking FDM services from Rule Editor on a Save / Button by mapping fields to corresponding DB fields.

In this case, it is not getting auto-populated and our requirement is also satisfied

 

Hence closing this thread!

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

310 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

310 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

18-02-2021

@Ssb_94 This is expected if you bind two fields with the same object in the data source.