Submitted by WayneK on 2023/12/03 14:51

I just created an obnoxious situation for myself by creating hundreds of items with bold formatting, then changing my mind and wanting to unbold everything.  

The bolding was created "in-line" by entering edit mode and selecting the text for bolding (rather than selecting the item and then bolding).  When you bold this way, there appears to be no way to unbold the text en masse.  You have to tediously enter edit mode for each item, and select each line of text to unbold it.

To make it worse, often selecting the text and unbolding doesn't work either.  I have to exit WYSIWYG mode, then enter edit mode, and delete the <b> and </B> for each item.

The lesson for me is to never use in-line bolding for an entire item.  Always select the whole item, then bold it so you can easily undo it later.

But if you get in this situation is there a better way out of this than having to individually edit hundreds of items?

Wayne

Comments

Hi Wayne,

Create a this VBScript function:

function RemoveBold(sText)
    dim s

    s=sText
    s=replace(s,"<b>","")
    s=replace(s,"</b>","")
    RemoveBold=s

end function

Then, create a Y/N field TriggerUnBold with the following Auto-assign: A:[Item]=RemoveBold([Item])

Finally either add this field in your grid and check it to individually remove the bold, or select multiple items and check the field in the Properties pane to batch remove the bold 

This will remove all bold text. If you want to remove bold only when the whole item is bold, then it is quite easy to modify the VBScript to do just that

Pierre_Admin

How do I ?