Hello,
My list of values in a pull-down field has a comma -
'Silver Sponsor - $2,000'
and it looks like this comma triggers a 'carriage return' in TNEW. Any workarounds ?
Thank you,
Sabina
Hi Sabina -That's weird. Ours doesn't do that. I assume you're talking about how it appears on the front end to the user? Here's our contribution TNEW page with lots of commas in the dropdown!https://order.pnb.org/dev/contribute.aspx
Thank you for your example. How do your entries look in Tessitura system table?
Thanks,
Here's our LTR_TNEW_CONTRIB_TYPE table. Hopefully you can see the image attached.
My advice for debugging this: compare the DOM element tree in your web inspector with the source code being returned by the server. If there's a <br> in the source, then it's something on TNEW's side, but if the DOM tree has a BR but the source doesn't, then you know it's some page javascript that's substituting the , with a <br>.
Thank you !
Our field is in the LTR_TNEW_CUSTOM_FORM_DATA
Nick i thank you for your advise - where can I find DOM element tree ? Thank you,
Aha, this clears it up!
If you look back at the documentation for this table, you are meant to enter dropdown field values as EITHER semicolon- or comma-delimited. This doesn't mean you get to pick one, and then TNEW guesses which one you meant! This means that TNEW will delimit on BOTH commas and semicolons.
So, you can't use a comma in your currency format, because TNEW thinks you want this to delimit different dropdown choices. NORMALLY I would suggest you can work around this by using an HTML character entity in place of the comma -- which would look like $1,000 -- HOWEVER, since character entities are semicolon-terminated, I don't know if TNEW will misinterpret that as another delimiter! You'll have to test. (If the entity terminator is indeed interpreted as a delimiter, I'd call it grounds for a bug report -- having two different delimiter options, one of which is incompatible with HTML character entities, is pretty bad design I think.)
To answer your other question, web debugging gets a lot easier once you are familiar with Chrome developer tools (and all major browsers have some equivalent). This is a google-sponsored course that will give you a pretty thorough introduction: http://discover-devtools.codeschool.com
Nick, thank you so much. I think it's a bug - it didn't displayed correctly using an HTML character entity. Will look into the course soon.