We have a MS Form that has a dropdown with [12 options, but more importantly] the "Other" option enabled.
How do we [compose the condition statement to] check if a responder has selected "Other" (filling in their own custom/"arbitrary" response)? (We don't *particularly* care for capturing that "custom response", only that the "Other" option was selected at all.)
Is there a [constant/reliable/predictable] flag/indicator[/property/variable/etc.] that denotes the "Other" option was selected in such a dropdown? I tried looking at some of the raw code in a test-run, but code not discern such an indicator; just the arbitrary/varying/unreliable user's input. So,
Am I stuck with needing to write a long [A.F.] conditional statement, to check that it was not any of the predefined dozen, like:
IF( name!="Alex" && name!="Brady" && name!="Casey" && /*imagine triple this amount*/ && name!="Leslie" ) {
/* THEN: "Other" was selected!
Notify 'forms-dev@example.com'
of a potential issue/change. */
}
And, if that's the case, is there a shorter method/function that can help simplify the condition statement? Something like:
IF(! myObject.hasOwnProperty( responseValue ) ){ /* Then: "Other" was selected! */ }
Fortunately, I happen to have the predefined dozen option values already initialized in a [Power Automate] object, like so:
{
"Alex" : {"email":"alex@example.com", "phone":"+14045550001"},
"Brady" : {"email":"brady@example.com", "phone":"+14045550002"},
[...],
"Leslie" : {"email":"leslie@example.com", "phone":"+14045550012"}
}
So, I'm hoping maybe there's a method there I can leverage if I can't simply just check for a flag that "Other was selected."
Thanks for assisting the new[est] kid on the block today!