Hello Team,
I have SharePoint List and form of SharePoint is being customized with Power Apps. I have a multiple choice column "Pre_x002d_AlertNotificationRecei" in SharePoint with feature "Allow Fill In" is enabled and after customizing with Power app this feature is not working. I got an alternate solution to add text input "TextInput1" and Button control so that whenever user doesn't find value in choice column they can write new value in "TextInput1" and through Add button then value will be appending in choice column which further will be visible to user.
To achive this, I am writing a Patch Code in "OnSelect" control of button but getting an patch error " The type of argument "Pre_x002d_AlertNotificationRecei" does not match the expected type 'Table'. Found Type 'Text'.
Below is the code that I have written:
If(
Not(IsEmpty(Filter(Choices([@'Test List Power Apps'].Pre_x002d_AlertNotificationRecei), Value = TextInput1.Text))),
Notify("Value already exists", NotificationType.Error),
Patch(
'Test List Power Apps',
Defaults('Test List Power Apps'),
{
Pre_x002d_AlertNotificationRecei : TextInput1.Text
}
}
);
Reset(TextInput1)
)
Please give me a solution that can fix this issue. Let me know if you want more detail on this.