I am currently displaying an Entity List of existing entities on my portal. I am trying to connect the Detail view from this list to an Entity Form in Insert mode, such that I can create a related record in another entity. However, I don't want to have the user have to find the ID from a lookup list - I want to use the ID from the original Entity List, which the portal should have based on which row's detail link was selected. I did some searching, and found a suggestion to add the following Javascript to my Entity Form:
$(document).ready(function() {
$('#new_lookupattribute').val("{{request.params['refid']}}").closest('.lookup').hide();
});(I replaced #new_lookupattribute with the name of my lookup field). However, it doesn't appear to be doing anything - it neither pulls the ID, nor hides the lookup field. Any suggestions to getting this to work?
Thanks!