Hi @Anonymous,
Could you please share a bit more about your scenario?
Do you want to type a value for the CATEGORY field (in CreateTicketScreen and EditTicketScreen) within a TextInput control rather than select select value from the Dropdown options?
If you want to type a value for the CATEGORY field (in CreateTicketScreen and EditTicketScreen) within a TextInput control rather than select select value from the Dropdown options, you should remove the Dropdown box from corresponding screens (CreateTicketScreen and EditTicketScreen), and then add a TextInput control for the field.
I have made a test on my side, please take a try with the following workaround:
Within the CreateTicketScreen:
- Remove the Dropdown control for the CATEGORY field, and add a TextInput control (named "CreateTicketScreenCategoryText") for it.
- Modify the formula within the OnSelect property of the "CREATE" button as below:
Set(NumberOfTickets,NumberOfTickets + 1);
Patch(TicketList,Defaults(TicketList),{Id:NumberOfTickets,
Title:CreateTicketScreenTitleText.Text,
Priority: CreateTicketScreenPriorityDropDown.Selected.Value,
Author:MyProfile.Mail,
TaskStatus:"NOT STARTED",
PercentComplete: "0",
Created:Now(),
AssignedTO:"",
Description:CreateTicketScreenTaskDescription.Text,
Editor:MyProfile.Mail,
Modified:Now(),
Category:CreateTicketScreenCategoryText.Text }); /* <-- Modify here */
Reset(CreateTicketScreenTitleText);
Reset(CreateTicketScreenTaskDescription);
Reset(CreateTicketScreenCategoryText); /* <-- Modify here */
Reset(CreateTicketScreenPriorityDropDown);
Navigate(ConfirmSubmitScreen,None)
- Modify the OnSelect property of the "CANCEL" button as below:
Reset(CreateTicketScreenTitleText);
Reset(CreateTicketScreenTaskDescription);
Reset(CreateTicketScreenCategoryText); /* <-- Modify formula here */
Reset(CreateTicketScreenPriorityDropDown);
Navigate(MyTicketsScreen,None)
- Modify the OnSelect property of the "Back" icon button as below:
Reset(CreateTicketScreenTitleText);
Reset(CreateTicketScreenTaskDescription);
Reset(CreateTicketScreenCategoryText); /* <-- Modify here */
Reset(CreateTicketScreenPriorityDropDown);
Navigate(MyTicketsScreen,None)
The GIF screenshot as below:
Within the EditTicketScreen (the same as that within CreateTicketScreen):
- Remove the Dropdown control for the CATEGORY field, and add a TextInput control (named "EditTicketScreenCategoryText") for it.
- Set the Default property of above TextInput control to following formula:
SelectedTicket.Category
- Modify the OnSelect property of the "UPDATE" button as below:
If(isAdmin,
Patch(TicketList,LookUp(TicketList,Id=SelectedTicket.Id),{
Priority:EditTicketScreenPriorityDropDown.Selected.Value,
Category:EditTicketScreenCategoryText.Text, /* <-- Modify here */
TaskStatus:EditTicketScreenStatusDropdown.Selected.Value,
PercentComplete:EditTicketScreenCompletedSlider.Value/100,
AssignedTO:AssignedToUserDisplayName,
Editor:MyProfile.Mail,
Modified:Now(),
Description:EditTicketScreenDescriptionInput.Text
}),
Patch(TicketList,LookUp(TicketList,Id = SelectedTicket.Id),{
Priority:EditTicketScreenPriorityDropDown.Selected.Value,
Category:EditTicketScreenCategoryText.Text, /* <-- Modify here */
Editor:MyProfile.Mail,
Modified:Now(),
Description:EditTicketScreenDescriptionInput.Text
}
));
Reset(EditTicketScreenCompletedSlider);
Reset(EditTicketScreenStatusDropdown);
Navigate(MyTicketsScreen,None)
- Modify the OnSelect property of the "CANCAL" button as below:
Reset(EditTicketScreenCompletedSlider);
Reset(EditTicketScreenStatusDropdown);
Reset(EditTicketScreenDescriptionInput);
Reset(EditTicketScreenPriorityDropDown);
Reset(EditTicketScreenCategoryText); /* <-- Modify here */
Reset(EditTicketScreenCompletedSlider);
Navigate(MyTicketsScreen,None)
- Modify the OnSelect property of the "Back" icon button as below:
Reset(EditTicketScreenCompletedSlider);
Reset(EditTicketScreenStatusDropdown);
Reset(EditTicketScreenDescriptionInput);
Reset(EditTicketScreenPriorityDropDown);
Reset(EditTicketScreenCategoryText); /* <-- Modify here */
Reset(EditTicketScreenCompletedSlider);
Back()
Best regards,
Kris