Jump to content
  • How to change text color of input controls


    stchan
    • Features: Input Controls Product: JasperReports® Server

    Issue Description

    Is there a way to change default font color for the text of input control?

     


    Resolution

     

    You can update the input controls form with JSP file.

    WEB-INFjspmodulesinputControlsInputControlTemplates.jsp

    You can update the relevant section(s) of the JSP to set default input color of element(s).

    The changes will apply to all reports.

     

    For example,

    (Inserted style="color:blue" as below to set "singleValueNumber" input to be blue.)

    <script id="singleValueNumber" type="template/mustache">
        <div id="{{-id}}" class="leaf">
            <js:xssNonce/>
            <label class="control input text"  title="{{-description}}">
                <span class="wrap">{{if (mandatory) { }}* {{ } }}{{-label}}</span>
                <input class=""  type="text" value=""  style="color:blue" {{if (readOnly) { }}disabled{{ } }} />
                <span class="warning">{{-message}}</span>
            </label>
        </div>
    </script>
    
    

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...