Forum Discussion
Ok, so I have to use an intermediate Formula Text Field and write a formula to replace the text inside square brackets along with the brackets with a comma. How can I achieve that?
- ChrisChris8 years agoQrew Assistant Captain
Let's say you have a field into which you import the additional text. Let's call it for now, [Additional Text]. << this is to be a normal, multi-line text field.
Let's create a formula text field, [Text field plus additional text]. << This is a 'formula text' field.
Inside the code for the formula text field, [Text field plus additional text], you will say,
[my current text field] & " any separator characters " & [Additional Text]
[My current text field] is whatever your current text field is whose "content" is to be appended to within your formula text field.
Your import spreadsheet would import only into [Additional Text]. Not any of the other two text fields.
You would create or modify existing reports using the formula text field, [Text field plus additional text]. In other words, your reports will use [Text field plus additional text].
Your current already in use text field would be for normal single record form input.
Does this make sense?
- KaranBhavsar8 years agoQrew TraineeIn the image I shared; my multi-line text field (say [Data] ) already had data "John, Shawn, Josh". Then through the HTML page that I attached below, I add more data i.e. "6" and "9.2" to the same multi-line text field [Data] that gets added with date-name stamp. If I add more data i.e. "10"; it will get added to the same [Data] with date-time stamp and will look like this.
John, Shawn, Josh [NOV-01-17 karan-bhavsar] 6 [NOV-01-17 karan-bhavsar] 9.2 [NOV-01-17 karan-bhavsar] 10
I want to replace the text inside square brackets along with the brackets with a comma so that I get this >> John, Shawn, Josh, 6, 9.2, 10
How can I achieve this using formula text field.
") - ChrisChris8 years agoQrew Assistant CaptainIn the properties of the original text field, it looks like you have "Log edits to this field and show them on forms" checked. If you uncheck that property, you will not get the data in the square brackets.
- KaranBhavsar8 years agoQrew TraineeI am using Log edits so that when I click on Add button on HTML page, it appends the data to the data already present in the text field and not replace the existing data.
- ChrisChris8 years agoQrew Assistant CaptainOkay, I thought you were taking a different direction, but it sounds like you want to keep log edits. I'm uncertain at this point what you wish to accomplish.