TLDR I am looking to pass the value of an HTML Form Web Part Filter on a Site Page to a Text Field on a New Form, when the New Form is invoked from a button as a modal-popup from the same site page that contains the HTML Form Web Part. How can I do what is happening in the picture below?
Optional. For those interested in more clarity on the names, details, and stwp-by-step of this question, feel free to read below.
Site Page It's called 'Launch.aspx'
HTML Form Web Part
I have an autocomplete script that on my Site Page that populates the HTML Form Web Part with items from List:'Companies', field:'Title'
The textbox id is called 'tags' -- see below (it's the script for the textbox for the filter)
I have (1) custom NewForm for a Task List ('Tasks'), the form url is:'/Lists/Tasks/AddNew.aspx'
I have (1) custom EditForm for a Document Library ('DocLibrary'), the form url is: 'DocLibrary/Forms/UpdateForm.aspx'
both of these forms can be invoked from the Site Page 'Sites/Launch.aspx'
both of these forms have a field called 'CompanyId', which I'd like passed from the value in the HTML Form Web Part ('tags')
'COMPANY' LIST As previously stated, thee HTML Form Web Part autocomplete is populate from list items a List called 'Companies' from the 'Title' field
- A user enters the Comapny Name 'John Deere' in the HTML Form Web Part Filter and filters the page. Once that value 'John Deere' is passed a filter, the user opens a custom new form from the Site Page. When the form opens, 'John Deere' is the value in the field 'CompanyId' in the custom new form. The user goes back to the Site Page, and invokes a custom edit form. Upon opening the custom edit form, the value 'John Deere' is passed to the field called 'CompanyId'.
Very much appreciated -- please let me know if I can further clarify anything.