Can you do me a favor please and post a picture of the code. My guess is you should see some red squiggles and it helps to identify focus areas if we see them all and all their errors.
Now just looking at what you said. Please note its great you listed the errors, but its a bit of a guess here :-) since I cannot see what is underlined in red, so I am Colomboing it hehe (if you are old like me you'll know that show)
Ok you have
My guess is TextInput_FosterLocation.Text is incorrect.
Is that a Dropdown or Combobox?
I ask because you errors said
Text is not recognized. I combine that with IsBlank has invalid arguments AND it says you are supposed to set 'Current Location' to a TEXT (aka string(
Well the only thing you have used 3 times, and that would align as being the trouble maker is
TextInput_FosterLocation.Text
So please let me know what this is, because if its a TextInput, I believe something is wrong. So paste a picture of the code with all the squiggles and let's have you click and highlight the control you are saying is TextInput_FosterLocation.Text.. as I just have a feeling its a drop down or combobox and you need to do .SelectedText or .Selected.Value instead.
Below is the Power FX formula for the Button (Button_ClaimFoster) on the third screen: AnimalDetailsScreen. I keep gettin multiple error like:
- the Text is not recognized,
- Patch has invalid arguements,
- IsBlank has invalid arguements,
- The type of this argument 'arsm_currentlocation' does not match the expected type 'Text'. Found type 'Error'. arsm is a prefix name of my publisher.
If(
IsBlank(TextInput_FosterName.Text) || IsBlank(TextInput_FosterLocation.Text),
Notify("Foster claimer and location are required!", NotificationType.Error),
Patch(
Animal_Tables,
SelectedAnimal,
{
'Shelter Status': {Value: "Claimed for Foster"},
'Foster Claimer': TextInput_FosterName.Text,
'Current Location': TextInput_FosterLocation.Text
}
);
Notify("Animal successfully claimed for foster!", NotificationType.Success);
Navigate(ViewAnimalsScreen, ScreenTransition.Fade)
)