Quotation marks in a text string

In other languages, you can include quotation marks in a text string by surrounding the string with the opposite marking, i.e. single quotes around double quotes, or double quotes around single quotes. Appsheet does not seem to like this. I’m trying to use 6", as in “six inch”, in an expression. I’ve tried ‘6"’, text(6"), text(‘6"’), to no avail. Is Appsheet capable of handling this, and if so, how?

Specifically I’m trying to see if 6" is in a list of text items: IN( text(6") , [column])

Solved Solved
1 15 3,369
1 ACCEPTED SOLUTION

tony1
New Member

AppSheet’s formulas try to follow the conventions set by Excel formulas. In this case, you can escape a double quote by doing a double double quote. Confused? Here’s an example:

IN("6""", [Column])

View solution in original post

15 REPLIES 15

tony1
New Member

AppSheet’s formulas try to follow the conventions set by Excel formulas. In this case, you can escape a double quote by doing a double double quote. Confused? Here’s an example:

IN("6""", [Column])

Gotcha, thanks. Didn’t know that about Excel

what about json templates…
This function adds a backslash before “” double quote

@mustafa AppSheet will automatically escape quotes in your values in a JSON template. So if you do something like this:

{"text": "<<Some Column>>"}

and Some Column has the value "Hello," he said. it will be rendered as:

{"text": "\"Hello,\" he said."}

Henjoe
New Member

Hi,
I am having hard time wrapping my column values into double qoute:

I always get error on parsing it.
Looking for your help.

Thank you.

Regards,

What exactly is the output you are hoping for here?

It looks like you might be trying to dynamically change the looked-up column based on a value in the current row. I’m not 100% sure, but I don’t think you’ll be able to do this, as it won’t pass the expression assistant without an error, column names must be actual column names.

Thanks @Marc_Dillon ,

That’s exactly what I want. I want to dynamically past on the parameters on the LOOKUP function. If I did this, there we’re no errors as expected:

But that “Lopez Sugar Corporation” is in the Combobox [@ column Millers]. So basically, what I want is, based on the selected value on the combobox, I want to look up the value on the separate table. Will this be possible?

Regards,

I believe you’ll have to explicitly specify each possiblity.

IFS(
  [Millers] = "X" , 
  LOOKUP(..., "X")
  [Millers] = "Y" , 
  LOOKUP(..., "Y")
)

Thanks for suggestion! @Marc_Dillon ,
I will try this and will get back here.

Regards,

It works well. However I need to hardcode it.
But atleast it works as expected.

Thanks for your help! @Marc_Dillon

davidk
New Member

“1\302\240\342\200\223\302\2405”

is “1 - 5”, where unicode em-dash and non-breaking spaces are expressed in octal.

When I have an appsheet webhook send:

“my_data” : “1\302\240\342\200\223\302\2405”

Am I right to think appsheet is escaping my backslashes? can i suppress that, so the \302 etc is received as octal?

No, I don’t believe so. You should have no issue using blackslashes within a quoted text string.

Does JSON recognize octal escapes?

https://mathiasbynens.be/notes/javascript-escapes

davidk
New Member

ya. I’m having a challenge on the receiving side and don’t have visibility into where the stripping is happening, so I’m doing a few experiments.

Hi @davidk !

I’m afraid I don’t fully understand your problem but I’m wondering if substituting some other character for the backslashes and then reconstituting the strings on the other end might be an option. Sorry if my idea isn’t applicable to your situation.

Top Labels in this Space