Skip to Content
author's profile photo Former Member
Former Member

Text formating with user response function

Hi please help, I want to add the user selected date to the header of the report. however the report display must also comply with the report development standards. So the date coming from the user selected prompt is in caps (i.e. JUNE 2016) and I need to display as June 2016.

Currently I am using the following

  • ="Report Name - " + Initcap(Lower(UserResponse("Calendar Year/Month")))

the problem with this is that it only works after the user has made selections on the prompts, so when you open the report it shows #Error.

Although this error goes away after user has selected the date, is there a way I can make sure we only see the report name and the date shall be added once the user has selected the date?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2016 at 07:20 PM

    Use an If statement with IsError to handle the error:

    ="Report Name - " + If(IsError(UserResponse("Calendar Year/Month"));"";Initcap(Lower(UserResponse("Calendar Year/Month"))))

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2016 at 07:07 PM

    try this.

    ="Report Name - " + formatdate(todate(UserResponse("Calendar Year/Month");"MMMM yyyy");"Mmmm yyyy")

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.