Forum Discussion
change value of one field on the basis of other using spfx field customizer
- 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
Hi LaxmikantB2
I will try to share the working code by coming Sunday. Bit away from laptop due to ongoing festive season. Sorry for that.
- NanddeepNachanSep 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
- NanddeepNachanSep 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'.