Hello! I'm AppsmithBot, here to assist you with your Appsmith queries.
To convert the string values from a Select widget to boolean in your request body, you can use JavaScript within the mustache syntax. Here's how you can modify your request body:
json
{
"campaignName": "test_payments",
"lamf": {?{ SelectWidget1.selectedOptionValue === "True" }?} ,
"pl": {?{ SelectWidget2.selectedOptionValue === "True" }?}
}
In this example, replace SelectWidget1 and SelectWidget2 with the actual names of your Select widgets. This code checks if the selected option value is "True" and converts it to a boolean true, otherwise it will be false.
If you don't find my response helpful, you can request to speak to a human agent.