How to set Form Values from Popup window

Sevil Red 101 Reputation points
2020-08-05T14:12:50.62+00:00

Good Day,
I have the non-standard task. I have SharePoint Document List and Directory List. The Directory List includes three columns: “Process” (single-line field), “Process Group” (choice field), “Process Region”.
The Document List has “Process”, “Process Group”, “Process Region” fields too.

In the Directory List one Process Region includes several Process Groups, one Process Group includes several Processes.
The Directory List includes 100 list elements with filled “Process”, “Process Group”, “Process Region” fields.
I must create “Select Process” button on this Document List NewForm. The user wants to click this button and see Popup window.
The Popup window must display hierarchy “Process Region”, “Process Group”, “Process” from Dictionary List like Tree.
The user must click some process in Modal Window and that Process and his “Process Group”, “Process Region” values from Directory must become a field values “Process”, “Process Group”, “Process Region” on Document NewForm.aspx

Do the SharePoint standard methods to do that exist? Where can I see some JS code example to past values from Dictionary List to Modal Window, then past selected values from Modal Window to Document Form fields?

SharePoint 2016

Thanks for any idea.

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,607 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2020-08-06T02:42:19.673+00:00

    Hi @Sevil Red ,

    From your description, you might want user to select the value from a tree struct view within a Pop up window.

    In SharePoint 2016 environment, using managed metadata field can meet your requirement, please see the capture below:

    15965-image-20.png

    Once click OK, it will fill the selected value into the field control.

    Here is a detailed guide about how to use Managed Metada field for your reference:

    Creating a Managed Metadata Column

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.