Quick Tip: you can add comments in your text mode | Community
Skip to main content
RandyRoberts
Community Advisor
Community Advisor
October 5, 2021
Question

Quick Tip: you can add comments in your text mode

  • October 5, 2021
  • 2 replies
  • 1215 views

IF(CONTAINS(bacon),"devour","reject")

//not how to lose weight

// I am not sure if we need this, but too scared to delete.

//I am not sure why this works but it fixes the problem.

If you're frequently writing code in text mode and you sometimes can't remember what you did or why you did it, you can add comments to your code by prefixing the line with "//" double slashes… Just like a real programming language.

You're welcome.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Doug_Den_Hoed__AtAppStore
Community Advisor
Community Advisor
October 5, 2021

"He did not know he could not fly and so he did"

Awesome stuff, Randy -- thanks for sharing!

Regards,

Doug

Level 4
February 15, 2022

Alas, not available in custom form filters :-( But still great to know elsewhere.

BrentHat
Level 2
July 26, 2024

outrageous! if i can't leave notes to myself reminding me to NOT switch to standard mode, i'm destined to do just that and then wonder why my report stopped showing what i needed it to show. 

Level 10
October 9, 2021

Is this new, or has it always been there!?! I was told this wasn't possible!

Also…how does this behave with the text mode sorting behavior. In other words sometimes if I put in text mode, then save, WF has it's own ideas and re-orders the code. How are comments managed?

RandyRoberts
Community Advisor
Community Advisor
October 11, 2021

Workfront still re-sorts your code to make it unreadable. I keep copies in a text editor (Sublime Text) so I can refer to it later sorted as written. Hopefully they address that issue at some point. I know they're planning on having no text mode with the new report interface so they may not be planning on any text mode enhancements.

I don't know if it's always been there but I never knew you couldn't… so I did! Hence Doug's comment above.