I am having trouble with determining the source of an error.
I have a Radio control with this items property.
In the OnSelect I have a switch statement that is throwing an 'Incompatible Type' error and I can't figure out where it's coming from.
The variables match what is in the switch statement and I have checked all other references to the Radio Control to make sure that they are referencing the correct values.
Any suggestions of where to look would be most welcome.
Solved! Go to Solution.
haven't seen that error before. but noticed extra comma in your switch statement in the last condition code line.
also, personally i would try to get radio selected values in a single consistent way: radio.selected.value (in your code there are 2 ways are used - radio.selected.value and radio.selectedtext.value).
as i remember .selectedtext is deprecated. may be that causes that errors.
Hi @JR-BejeweledOne ,
Can you please post that code also in a text box so I can have a good look at it.
haven't seen that error before. but noticed extra comma in your switch statement in the last condition code line.
also, personally i would try to get radio selected values in a single consistent way: radio.selected.value (in your code there are 2 ways are used - radio.selected.value and radio.selectedtext.value).
as i remember .selectedtext is deprecated. may be that causes that errors.
As Alex indicated below, there is an extra comma. Sometimes it takes an extra set of eyes!. But, yes, here.
Switch(
RadioReplaceDeveloperQuestion.SelectedText.Value,
"Replace Developer", SubmitForm(FormTrainingContent); SubmitForm(FormCumulativeProjects),
"Change my selections", UpdateContext({ DeveloperValidation: false }),
"Update hours for assigned developer", UpdateContext({DevName: ComboBoxDevelopers.Selected.Name}); SubmitForm(FormTrainingContent); SubmitForm(FormCumulativeProjects),
"Update hours for assigned collaborator", UpdateContext({DevName: ComboBoxDevelopers.Selected.Name}); SubmitForm(FormTrainingContent); SubmitForm(FormCumulativeProjects),
)
Sometimes it takes an extra set of eyes, especially at the end of the day. I didn't know that SelectedText was deprecated. Thanks for pointing that out.
It was indeed the extra comma.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
181 | |
52 | |
41 | |
40 | |
34 |
User | Count |
---|---|
262 | |
81 | |
71 | |
69 | |
66 |