Skip 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.

Clear Some of the text in text field

Featured Replies

Hello Please Help what i want is if a checkbox is ticked the Subscribed and Sworn will be cleared in the textfield 

Sorry, but your question is not clear.  

 

Do you want to clear a text field if a checkbox is ticked?  Perhaps you should  use "button setup"  or a script trigger to fire script when the checkbox is changed.  

  • Author

is there a way to use this using a text field with calculation

See if this helps you along.

 

Case (

YourCheckbox = "" ;

YourTextField ; Substitute ( YourTextField ;

["Sworn " ; ""] ;

[ "Subscribed " ; "" ]

)

)

  • Author

By the way this is the full text "SUBSCRIBED AND SWORN to before me on"

is this the right calculation

 

Case (

YourCheckbox = "" ;

YourTextField ; Substitute ( YourTextField ;

["SUBSCRIBED AND SWORN to before me on" ; ""] ;

)

Is there a question in there somewhere, or are you good now?

Hi Chad,

 

It would help if you answered Matthew's question ... do you want to clear the entire field or only that phrase FROM an existing text field which also holds other text?  Some considerations:

  • If you want to clear the entire field, you don't need the Substitute() portion.
  • If you will never need to manually change that text field other than display that phrase or not then you should use a calculation instead of an auto-enter field.
  • If you use an auto-enter calculation you must remember to UNCHECK 'do not replace existing value if any' or it won't update.
  • If it contains other text you wish to preserve, the existing calc will remove it which you may not want.
  • If this is ONLY for display then you don't need a calculation at all and you can handle it at the layout level with a merge variable or even just a text block.  It is seriously worth considering since every calculation adds to field clutter and bloat.  

So as you can see, the more information you provide, the more valuable our suggestions.  If you fill in a bit more information, we can be sure you get exactly what you need.  Or as Lee asks ... 'are you good'?   :laugh2:

  • Author

Lee Smith Thanks for this i found a solution for the calculation you gave to me i edit some tweak 

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.