Good day folks who know more than I do:
I'm trying to use a ReplaceSubstring Function with javascript, in order to populate some text.
Back story is that some of the text has commas in it, therefore (apparently) that'll screw up the system because I'm using a comma list. So it'll see a comma and start a new list.
DOH
In order to fix that the IT guy who is currently unavailable suggested replacing a number with the text in these rules I'm making up. There are 12 bullet points in question. The script goes something like this:
There's a different bullet point for every number, so lcFieldContent, "2," "3," etc..etc.. all the way to 12.
The fun arrives when the customer goes to choose number 10, 11, or 12.
I thought putting the 1 in quotes "1" would tell the script that it's looking only for what's between the quotes but apparently not.
I'm trying to use a ReplaceSubstring Function with javascript, in order to populate some text.
Back story is that some of the text has commas in it, therefore (apparently) that'll screw up the system because I'm using a comma list. So it'll see a comma and start a new list.
DOH
In order to fix that the IT guy who is currently unavailable suggested replacing a number with the text in these rules I'm making up. There are 12 bullet points in question. The script goes something like this:
Quote:
return ReplaceSubstring(lcFieldContent,"1,", "<br> Determine plan objectives and plan design options.") |
There's a different bullet point for every number, so lcFieldContent, "2," "3," etc..etc.. all the way to 12.
The fun arrives when the customer goes to choose number 10, 11, or 12.
I thought putting the 1 in quotes "1" would tell the script that it's looking only for what's between the quotes but apparently not.
Aucun commentaire:
Enregistrer un commentaire