# How to read a field object from a form field mask payload

**URL:** <https://forum.wixstudio.com/t/how-to-read-a-field-object-from-a-form-field-mask-payload/69367>\
**Category:** Ask the community\
**Tags:** wix-forms-v2, wix-data, wix-forms, code, cms, question\
**Created:** [March 5, 2025, 10:57am UTC](https://forum.wixstudio.com/t/how-to-read-a-field-object-from-a-form-field-mask-payload/69367 "2025-03-05T10:57:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erich\_Lagler](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/erich_lagler/32/106180_2.png) [@Erich\_Lagler](https://forum.wixstudio.com/u/Erich_Lagler)\
**Post date:** [March 5, 2025, 10:57am UTC](https://forum.wixstudio.com/t/how-to-read-a-field-object-from-a-form-field-mask-payload/69367/1 "2025-03-05T10:57:21Z")

</div>

**Question:**  
how to read a field object from a form field mask payload

**Product:**  
Velo Code Rules in Automation to send info to CMS

**What are you trying to achieve:**  
Depending on the field value, a rule should provide an info text to cms

**What have you already tried:**  
import wixData from “wix-data”;  
export const invoke = async ({payload}) =\> {  
var myformName = payload.formName;  
var wishList = payload.wishes; //always null  
var info = “”;  
; //wish list  
; //field wishesList

if (wishList == “sam wish”){  
info = “myInfo”  
}  
//TODO send Info to cms Table

return {} // The function must return an empty object, do not delete  
};

tried some other variants with error , but I am not an expert in jsp

**Additional information:**  
my example data schema for the payload  
{  
“formName”: “My form”,  
“submissions”: [{“label”: “label”,“value”: “value”}],  
“submissionTime”: “2018-11-13T20:20:39+00:00”,  
“formFieldMask”: [“formname”],  
“submissionId”: “edca2245-7ce3-4d95-bfe9-b2012110eb8f”,  
“contactId”: “edca2245-7ce3-4d95-bfe9-b2012110eb8f”,  
“submissionsLink”: “[https://www.wix.app/forms/0d3de1xxxxx](https://www.wix.app/forms/0d3de1xxxxx)”,  
“formId”: “0xxx”,  
“field:wishes”: “field:wishes”, //how to select field:wishes Objekt veloCode???  
…and so on
