Related Posts
  • Forum Post: New Workflow influences functionality of external Javascripts

    Hello, Does anybody know about this voodoo issue: - write Javascripts that are embedded from /isv/ and embedded with the onload event of a form, others that are fired onchange. works fine - create a workflow on the same entity, publishing it. (no dependencies to the javascript, only the same entity)...
  • Forum Post: CRM3 lookup field

    I have a problem regarding a lookup field. I made a entity, with a parental link to accounts. When i select an account, i want the industrycode to be brought along. so, i thought i could use the lookup function.This is what i have: lookupItem = crmForm.all.new_klantid.DataValue; if (lookupItem...
  • Forum Post: Use of JavaScript Multidimentional Array for validating attribute entry

    I have 2 attributes: the first shows a primary choice from a pick list of 5. The second should show a secondary choice which can be any of the 5 but not include the primary one. The pick list for this contains every possible combination (31). I now need to set up an on-change event on the secondary attribute...
  • Forum Post: Re: hiding fields dynamically

    I'm not sure what is going with your code, but it appears to be related to FireOnChange being called from OnLoad. I've had good luck by creating a function OnLoad and calling that function wherever I want to update the field visibility. Add this code to OnLoad: document.HideElement...
  • Forum Post: Re: Make an attribute invisible or invisible

    For IFrame's you should be able to set the source to about:blank. There is likely a way to set it using style, but this should get you going. crmForm.all.IFRAME_ProductRanking.src = "about:blank"; As for hiding actual fields on the form, put these functions at the top of your OnLoad...
  • Forum Post: Re: Re: Re: Re: hiding fields dynamically

    If you are talking about the print preview of the screen, it doesn't hide the fields. The javascript code is not ran when the print preview screen is displayed. I hadn't noticed that before. I don't know of a work-around. The best advice I can give is to put any fields that will always...
  • Forum Post: Re: Auto Filling Address Fields when selecting Parent Account

    You will need to call the CRM web service using JavaScript. Try this reference: http://msdn.microsoft.com/en-us/library/cc150838.aspx I have also written some helper objects to work with the WS objects: http://blogs.inetium.com/blogs/azimmer/archive/2009/02/01/crm-4-0-javascript-web-service-helper...
  • Forum Post: Auto fill City, State, Country and other info based on ZIPCODE

    Hi Everybody, I need help on this logic which I have to set up. I have a customized Entity "Zip Code" which stores information like City,State Or Province, County, Country, PC Name, PC Number, SE Name, SE Number for each Zipcode. Whenever a user enters a ZipCode (eg 45102) then based...
  • Forum Post: Re: Default values

    I don't know the second one off the top of my head, but here is the solution to #1: http://blog.customereffective.com/blog/2008/09/default-unit-of.html -Andrew http://blogs.inetium.com//blogs/azimmer
  • Forum Post: OnChange not firing consistently

    We have encountered a situation with a couple of our CRM 4.0 installations. As a standard feature, we apply code to all entities that contain phone number fields, where the entered phone number for each attribute is automatically formatted. The formatting code is associated with the form's onLoad...
  • Forum Post: Email form OnLoad event

    I would like to have an email template inserted to the email OnLoad. So basically the normal procedure is the open the case, create a new email activity and click on the "insert template" button, select the Regard Object and then select the template. I would like to automate this process...
  • Forum Post: Display notes on tab (NotesCount) - new version

    Hello CRM-community, a new version of the client side customization NotesCount for CRM 4.0 is available. Some new features like type dependend counters within the notes tab and a tooltip function for more details are now implemented. I created a codeplex project for centralized maintenance and...
  • Forum Post: Re: Custom entity - "close" records

    Hi. You can use following approach: 1. Create some attribute with two states (Can Modify, Can not Modify) - for example bit attribute named new_readonly. If Value of new_readonly is false - this means that this record is not final and can be modified, otherwise - this is final version of record and it...
  • Forum Post: Urgent: Hide views from drop down list

    Hi Everybody, Coming straight to the point, there are list of different views available in Activites Entity. I want to hide some of the view from it. I don't want user to use them and I also don't want to remove it from database completely also. I need a solution on front-end side or...
  • Forum Post: Re: Re: Re: Re: Adding fields to the Close Opportunity form.

    Ok. I'm trying something a little different and I think I can get it to work. I've added some script to the onLoad event. Basically: IF StatusReason == 4 or 5 (Canceled;Out-Sold) then display a Dialog box. This is where I hit the problems... Is there a way of having a Checkbox to the dialog...
  • Forum Post: Phone Number Masks

    Is there a simple way to create Masks for data types in CRM? In other words, we have to have an event on every single form in order to make sure that the phone number gets formatted properly. Is there a global way to doing this using j-script or any other customization tools and/or 3rd parties? Thanks...
  • Forum Post: Re: Re: Re: Set a default time in the Activity>Phone Call attribute

    Add following code to your phone call onload event if(crmForm.FormType==1) { var d=new Date(); d.setHours(d.getHours()+1); d.setMinutes(0); crmForm.all.scheduledend.DataValue=d; crmForm.all.actualdurationminutes.DataValue=15; }
  • Forum Post: Cache & CRM

    Hi Everyone, How are you doing ? I have a requirement that I need suggestion/advice on it. I have a Javascript file which holds functions it them. These file is set in the ISV folder on the CRM server. On required entitie I have appended this file on the OnLoad( ) event of the entity so that the...
  • Forum Post: Show/Hide fields - JS Problem

    hi, I'm trying to write a basic script that will make a field show/hide depanding on the Picklist choice. I wrote the following script, and it works for the onLoad function. i also put a call for that function on the onChange, but it doesnt work there, it gives me an error that says that...
  • Forum Post: onload fails to hide cells.

    I have 3 picklists: "off_udbud" "off_forlngelse" and the standard "opportunityratingcode". Depending on the value in picklist 4, one list is unhidden by the onload-klient skript I get this message: "Error, 'list 4' is not defined." salgsproces = list...
  • Forum Post: Problems with an empty LookUp field

    I created a form with 4 different LookUp fields: Contact Account VHE Complex When selected account 'A', it should filter the related VHE's Complexes and Contacts, which it does. Now here's the problem: There are 2 accounts, named Zeeman Real Estate and Zeeman...
  • Forum Post: hide section, if cell1=null & cell2=null

    Hi everyone. I thought this was easy, but I cannot get it to work... 4 cells emty will hide a section. { if( (mæglerhus=null | mæglerhus="")&&(Overordnet kunde=null | Overordnet kunde="")&&(Gruppeaftale=null | Gruppeaftale="")&&(Administrator...
  • Forum Post: Re: Resizing a crm form, choosing default lookup values and sync issues with crm contacts

    Answer for question 1: add following script to onLoad event handler of form: window.resizeTo(500,300); this will resize window to required size. Answer for question: check this article . You can hardcode identifier and name of price list or you can retrieve it using script from CRM. How to use RetrieveMultiple...
  • Forum Post: Re: Multi-Select Picklist in MS dynamics CRM

    Check following articles: http://jianwang.blogspot.com/2009/01/crm-40-checkbox-style-multi-select.html http://mscrm4ever.blogspot.com/2008/12/crm-40-supported-multi-select-picklist.html
  • Forum Post: Re: How to remove the print button from the quote form?

    Hi, Adriana. This can be done using JavaScript. Check this article .