Results 1 to 3 of 3

Thread: EditView File Location - JavaScript Help

  1. #1
    AnalyticalAviation is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    33

    Default EditView File Location - JavaScript Help

    I just loaded up 4.5 and notice that some of the textbox changes I made in the last version do not work when I apply them here. I am trying to change some of the textboxes to ALLCAPS on change or onkeypress... It doesn't matter to me. Anyway I cant seem to find out why its not working. my Javascript is as follows

    onChange="java script:this.value=this.value.toUpperCase();"

    From what I recall this code exactly as shown did the trick last time. Is there a correct position within the tag to place this code or does it matter?

    I guess what I want to make sure is that I am editing the correct file. I am opening Modules/Accounts/EditView.html

    Is that the correct file to edit the account name text box to be allcaps?

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: EditView File Location - JavaScript Help

    Quote Originally Posted by AnalyticalAviation
    I just loaded up 4.5 and notice that some of the textbox changes I made in the last version do not work when I apply them here. I am trying to change some of the textboxes to ALLCAPS on change or onkeypress... It doesn't matter to me. Anyway I cant seem to find out why its not working. my Javascript is as follows

    onChange="java script:this.value=this.value.toUpperCase();"

    From what I recall this code exactly as shown did the trick last time. Is there a correct position within the tag to place this code or does it matter?

    I guess what I want to make sure is that I am editing the correct file. I am opening Modules/Accounts/EditView.html

    Is that the correct file to edit the account name text box to be allcaps?
    OK, Maybe it's just a typing error but it should be

    onChange="javascript:this.value=this.value.toUpper Case();" not
    onChange="java script:this.value=this.value.toUpperCase();"

    there is no space in javascript.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    AnalyticalAviation is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    33

    Default Re: EditView File Location - JavaScript Help

    You rock! Hey thanks for the quick reply. I was pulling my hair out. It was copy/paste from a JavaScript website so I am sure this will fix it! I'll let you know if it doesn't.

    Have a good day and Thanks again

    GW

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •