Populate fileds from parrent form in child dialog list and library control

Hello @rhonda,

You need to first save the field value from the first form to the local storage:

fd.field('personfield').$on('change', function(value){
    localStorage.personField = value.DisplayText;
})

And then, on the second form, you can populate the field with the value from the local storage:

if (localStorage.personField){
fd.field('persontext').value = localStorage.personField;
}

Thanks... I had this code (localStorage.personField = value.DisplayText;) in a function (store) that I was calling like this: fd.field('personfield').$on('change', store) but it didn't work. I could see the values in store(), but they weren't being saved. Using your suggestion worked.

1 Like

I had another issue, but it was bc the field was set to READ ONLY.

I know I can use field.disable = true or false, but is there a parameter for READ ONLY in SP2019 on-premise?

@rhonda,

No, there is no API to change the Read Only property for the field dynamically. Please use the disabled property.