Can't use Post Value in Conditions or Set Value in Server Actions

What am I doing wrong?

I have a post variable that is locationid. It is a guid. When I try to use the post value in a Condition or a Set Value it does not work. I can set my Set Value to a test value, and it works but when I try to assign it to a Post value, it does not return the Set Value and it ignores the Condition Statement.

Let me show you, maybe I am missing something simple. I swear I use to be able to do this without issue.
Using it as a Set Value:

and it returns properly:

However if I assign the post value:

And here is the post values:

Nothing is returned, not even the SetValue name:

And yes, I have it set to output.

Same thing with using it in a Condition Statement

It ignores the condition statement.

Why can’t I use the Post Value? Am I formatting it right? This has been driving me crazy for hours!

Are you sure locationid is under the $_POST input tree?

What does the header says?

Yes, locationid is a post value:

So I assume it is plain text. Is that why it won’t work?

The Query String Parameters make some noise here
Are you sure it's a POST method? Click the Headers tab and check if it's a GET or POST method

1 Like

oh shoot. My form was post, but I also have a button click even on the form where i populated querystring values. I changed it to $_GET.locationid and it worked.

That is on me, I should have known. Thank you for walking through it with me! Greatly appreciated!

1 Like

Glad you got it working now..
Happy to help :slight_smile: