Skip to main content
1-Visitor
June 25, 2019
Solved

Ignore Mashup Textbox value when not used

  • June 25, 2019
  • 1 reply
  • 1318 views

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.

Best answer by slangley

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

1 reply

Support
June 25, 2019

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

connolcj1-VisitorAuthor
1-Visitor
June 26, 2019

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.