Hey there,
I created a Custom Field inside the PortalRequestCreatePropertyPanel module, the field is shown to the customer during the ticket creation process by using this code:
<PortalRequestCreatePropertyPanel data={formData} onSubmit={onSubmit} header="asas" width="medium">
<Fragment>
<Select label="Project" name="project" isRequired>
{Object.keys(issues).map(key => (
<Option label={issues[key].fields.summary} value={issues[key].fields.summary} />
))}
</Select>
</Fragment>
</PortalRequestCreatePropertyPanel>
But it looks like that the value, which is selected in the dropdown is not stored somewhere, for showing the field value, I have this code:
const View = () => {
const {extensionContext: myExtensionContext} = useProductContext();
console.log("Hey there!")
console.log(JSON.stringify(myExtensionContext));
console.log("#########################################################")
console.log("useProductContext().extensionContext: \r\n" + JSON.stringify(useProductContext()))
console.log("#########################################################")
const fieldAppearance = (value) => {
return "success";
};
return (
<PortalRequestDetailPanel>
<Text>
<StatusLozenge text={JSON.stringify(myExtensionContext)} />
</Text>
</PortalRequestDetailPanel>
);
};
The log with “console.log(JSON.stringify(myExtensionContext));” does not have any properties for the custom field.
May you can help here?
Thanks and best regards,
Chris