Margo
(Margo)
October 26, 2023, 8:48am
21
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;
}
rhonda
(Rhonda)
October 26, 2023, 9:41pm
22
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
rhonda
(Rhonda)
October 27, 2023, 6:15pm
23
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?
Margo
(Margo)
October 30, 2023, 6:05am
24
@rhonda ,
No, there is no API to change the Read Only property for the field dynamically. Please use the disabled property.