Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hi I'm looking for a way to set a textbox widget to be ignored when a value is not entered into it in a mashup. Right now it sends a blank value to an input on a service and I need it to not send anything when nothing is entered. A numeric entry box doesn't send anything when nothing is entered and I'd like the textbox to do the same.
Solved! Go to Solution.
Hi @connolcj.
The service will not function the same as a textbox in a mashup. In the service, a blank value is undefined, but in the textbox, it's blank. You would have to define the logic for this in your code.
Regards.
--Sharon
Hi @connolcj.
Sounds like you need to update your service to use an if condition to catch if the value being passed is blank or null.
Regards.
--Sharon
I need the service to be able to accept blanks as there are blanks within that field for this specific input. I just don't want the text box to automatically send that blank as a value. I'd like it to function as it does when I test the service at the thing level. The pop up that I get when I click "test" shows all the inputs for the service but will only send the values I give it and ignores anything that is not used.
Hi @connolcj.
The service will not function the same as a textbox in a mashup. In the service, a blank value is undefined, but in the textbox, it's blank. You would have to define the logic for this in your code.
Regards.
--Sharon
Hi @connolcj.
If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon