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

Using subform as alternative to AcroForm Dialog box

Avatar

Avatar
Validate 10
Level 5
tarekahf
Level 5

Likes

32 likes

Total Posts

409 posts

Correct Reply

10 solutions
Top badges earned
Validate 10
Validate 1
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Validate 10
Level 5
tarekahf
Level 5

Likes

32 likes

Total Posts

409 posts

Correct Reply

10 solutions
Top badges earned
Validate 10
Validate 1
Give Back 50
Give Back 5
Give Back 3
View profile
tarekahf
Level 5

30-12-2020

In a previous post, I managed to use a subform to replace AcroFrom Dialog Box:

https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-questions/creating-a-subform-as-pop...

 

Now, I am facing the same issue I reported earlier, that is, in the new case, the page is crowded, and child elements of the overlapping subform is confused with the large text fields behind the subform.

 

I am checking if there is a method to prevent clicking outside the subform (dialog box subform) if it is visible.

 

The only solution that I am thinking of is to use a much larger protected dummy button to be placed just behind the subform box that will cover all the other elements which are overlapping with the subform box.

 

Is there any other solution to prevent the focus-out (or the Exit) Event of the subform dialog box when it is visible?

 

Tarek

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

31-12-2020

Hi there,

 

When making your subform visible, you could execute a function to set all other fields to be read only until the user closes the subform "dialog"?

tarekahf

Yes, this is one of the correct methods, however, it is hard to implement, since I need to keep a manual list of all overlapping elements, and save the "access" property status before showing the popup, and restore the saved value after hiding the popup. And, everytime I move the popup, I have to modify the list of overlapping elements, and, I have to create a list for each template.

 

Do you have an idea of how to get a list of overlapping elements of a given subform in a parent subform? If there is any easy way, then such implementation might be possible.

Magus069
Well, I dont think you need a manual list of all overlapping elements, you could simply have a "Exception Array" in which you will insert the parent's name of the overlapping elements. Therefore, when looping throughout the form and saving the access state of each element, you can refer to the Exception list to avoid verifying their access state. The Exception list can be constructed within a script object at the initialize or docReady event of each overlapping element's parent. You simply need to ensure that the function to feed the Exception array is not executed more than once. I hope this may help you avoid creating a manual list.
Magus069

Comment by error, can't remove...

 

tarekahf
I think I understand your approach, and it is certainly a valid one. I am just concerned that it requires more work. I will try first using a dummy read-only button that will cover a larger area than the inner subform of the popup itself, and place the dummy button at the top of the popup. I have tried something else, that is on exit of the popup subform, set-focus on an element inside the popup, it seems like it is working, but UX not so good..