0

We had two lists in SharePoint 2013. One list (Report) is for the report and another list (Access) for access.

First list "Report" consist of a different column, one column name as "Request access" with Hyperlink column. So when user clicks on "Request access" column it will take to "Access" list.

Now our requirement, Access list columns need to auto populate data from "Report" register list. Means suppose we have columns with name as "Request', "Title", "owner names". Those columns data need to auto populate on "Access" list.

Is there any code for my request instead of lookup column? I am trying this code, but data not getting populated. Could anyone correct me?

Added below jquery script on the script editor under Report list

-- New form source of Report list --

<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>'
<script>
    $(function () {
        $('input[Request*="Request"]').on("change paste keyup", function() {
            var Audience = $('[id*="Request"]').val();
            localStorage.setItem('localRequest', Request );
        });
    });
</script>

-- New form destination on Access list --

Adding jquery script on the Destination list(Access) for populating data from Report list.

<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script>
    $(function () {
        $('input[Text*="Text"]').val(localStorage.getItem("localServiceArea"));
    });
</script>

Please share correct code or update in correct direction.

0

Is this the same issue as previously?

Auto Populate data from one SP form to another SP form

Just to clarify. You do know that you have to add these scripts to the forms directly. not to the list. enter image description here

  • Thanks Jaitsujin for correct me in right direction. But when i apply the script, i am getting data of latest added item. means Suppose if i added item name as "Jaitsujin" and Destination source list also getting same name as "Jaitsujjin". but After that if i create new item name as "Murali" and destination source getting "Murali" name, but i click on "Jaitsujjin" column again, its getting name as "Murali". Means latest data populating for previous items. Hope you got understand my issue. Could you please suggest for same. – murali kuruva May 10 at 14:19
  • Dear Jaitsujin, could please help on above issue. – murali kuruva May 13 at 0:44
  • Can you send a screenshot of your setup? – Jaitsujin May 13 at 1:17
  • Means list view screenshot? – murali kuruva May 13 at 1:24
  • Is this the behavior you're looking to achieve? scrennrecording – Jaitsujin May 13 at 1:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.