cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Robin1988
Helper III
Helper III

How To Prepopulate Field From The Previous Form

hello,

 

I have create a button that shows a popup window to assign a note to a ticket. Well now I want the ID or Ticktnumber Prepopulate in my second form (differt table, differt from).. I'm at the right spot because I can enter some pre filled in random text but how can I get the right date from the underlaying form?

 

So in the portal management in the box Value? Does someone has some ideas what to fill down there?


See attachments :)! Thx!!

 

10 REPLIES 10
Robin1988
Helper III
Helper III

@Atiour thx for the help. Got it!

 

Previous Form:

$(document).ready(function(){
    var currentRecordId = $('#cr5ba_id').val();
    window.localStorage.setItem('vorigeId', currentRecordId); 
});

 

Next form:

$(document).ready(function(){
    var previousTickedId = window.localStorage.getItem('vorigeId'); 
    document.getElementById("idxat_ticketid").value = previousTickedId;

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Users online (1,754)