Forum Discussion
LaxmikantB2
Aug 27, 2022Copper Contributor
change value of one field on the basis of other using spfx field customizer
I have a field name called Security(choice field) and other field name is Sensitivity. I want to copy the values of Security in Sensitivity in the list view. For example if value of security is Inter...
- Sep 01, 2022
Hi LaxmikantB2
The below code should give you Security (choice column) value:
event.listItem["_values"].get("Security")
The result is as follows:
Please note, I am using SPFx v1.15.0
NanddeepNachan
Sep 01, 2022Learn Expert
Hi LaxmikantB2
The below code should give you Security (choice column) value:
event.listItem["_values"].get("Security")
The result is as follows:
Please note, I am using SPFx v1.15.0
NanddeepNachan
Sep 05, 2022Learn Expert
Hi LaxmikantB2
Did you get chance to look at the code snippet? Is it working for you?
- LaxmikantB2Sep 05, 2022Copper Contributor
NanddeepNachan
Still getting the same error:
Element implicitly has an 'any' type because expression of type '"_values"' can't be used to index type 'ListItemAccessor'.
Property '_values' does not exist on type 'ListItemAccessor'.- NanddeepNachanSep 05, 2022Learn Expert
Hi LaxmikantB2
I see that you are using Node version 16.16.0, instead can you try using 16.13.2?