Replies: 1 comment 2 replies
-
Hey, this sounds weird indeed We do have an automatic inclusion of the parent form data for any non-GET request as you can see in this snippet: Lines 3524 to 3527 in 07d3518 But since you're precisely doing a By any chance, do you have any |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sample Code
Currently get is including all form data.While it works
Need request only in the below format
/getStates?&mailcountry=US
1.Tried & Failed.Works however sends data again, sending entire form data.
hx-get="/getStates" hx-target="#MailState" hx-swap="innerHTML" hx-vals='js:{mailcountry: document.getElementById("MailCountry").value}'
Log says-"/getStates?MailCountry=US&mailcountry=US&sal=&firstname=FName&middlename=&lastname=&SSN=&DOB=&mailaddr1=%20Main%20St&mailaddr2=&mailcity=Columbia&mailstate=&mailzip=&mailcounty=&sameasmail=on&billaddr1=&billaddr2=&billcity=&billcountry=&billstate=&billzip=&billcounty="
2.Tried & Failed.Not working at all.
hx-get="/getStates" hx-target="#MailState" hx-swap="innerHTML" hx-params="MailCountry"
Log says -/getStates?MailCountry=US
Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions