Javascript to prepopulate Currest user name is throwing undefined error


I have the same code in few other forms where it is still working. I created a new form yesterday its giving me error. If i go to console it says undefined at Spforms.

fd.spRendered(function() {

pnp.sp.profiles.myProperties.get().then(function(result) {
var props = result.UserProfileProperties;
fd.field("EmployeeResource").value =props[3].Value;
fd.field("BusinessTitle").value = props[12].Value;
fd.field('Title').value= props[28].Value;
fd.field("Manager").value = props[14].Value;


Hello @kpall,

Welcome to Plumsail Community!

Could you please share the screenshot of the error from the browser console (F12) so I could have the full picture. Thank you!