Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I have a text field called "Sample HTML Code" that contains the following contents:

<tbody class="result">

<tr>

<td>

<span>Price not displayed.<span class="tiny"> <a href="/gp/feature.html?ie=UTF8&amp;docId=174014">Why?</a></span></span>

<div class="shipping_block"><span class="price_shipping">+ $150.00</span><span class="word_shipping">shipping</span></div>

<tbody class="result">

<tr>

<td>

<span class="price">$1,616.42</span>

<div class="shipping_block"><span class="price_shipping">+ $113.49</span><span class="word_shipping">shipping</span></div>

I Want to remove a portion of this text field and just delete it. The text portion being:

"</span></span>

<div class="shipping_block"><span class="price_shipping">+"

I want to leave the rest of the field intact and just delete that one section. Should I create a script or calculation/script trigger? Additionally, how do you remove just a section of text from a field in filemaker?

Let( losetext="[b]</span></span>[/b]





<div class="shipping_block"><span class="price_shipping">+";

Substitute(MyTextField; losetext;"")

)

You may have to insert the pilcrow (¶) character in place of the newline characters in the text.

  • Author

No Dice, I've added a sample file, yet cannot get it deleted with that set of code

SampleA.fp7.zip

I repaired your sample. As I said, the newline characters had to be replaced with ¶. Because (probably) the text was copied and pasted from an actual HTML file, there were a lot of space characters interspersed. I had to take the text from your field and paste it into a text editor that showed invisible characters. I then made the substitution. I also had to escape the quotation marks within the text with \.

  • Author

Still having trouble reproducing the results. Do you have the repaired file?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.