Is there any way to have a "single line of text" field with a different language than the base language on a custom entity form? I have a text field "Channel Name" and I need to have another field "Channel Name in Arabic". Explaining a bit, I want it such that when the user types in the field, it should be in Arabic and not the base language English. Please help.
Some parts of CRM are translatable, while others are not.
You can translate the label for a field into a user's local language.
You cannot translate the contents of a text field: The same content will be shown to all users, irrespective or their language settings.
There is nothing stopping your users from entering Arabic into any text field in CRM if that fits your needs.
Related
How do I display the value from a relational page link into another text field?
I am creating a Family Tree website for my family. I have set up advanced custom fields where they enter information about their ancestors. To make their experience easier, I am trying to have certain fields populate automatically. For example, if they select their grandmother's name from a relational page link, (each person has their own post created for them), I would then like the value from their relational link selection to appear in real-time in a separate text field, visually. This text field is only there to be used as a label of sorts to indicate where to add the great-grandparent's names. Because as you go deeper into the generations it can get difficult to know where you are at. Having this functionality will orient them quickly as to where to go next.
If this relation link value could populate the Name/Label of the text field that would even be better but I thought that might not be possible.
When a user opens the view "Items Available To Work on" for QueueItem entity, a related entity's column is showing some data in the view. I want to remove or hide that data when another column in the view has some specific data in it.
Here is the actual example which I need to achieve.
When the field "Case Type" has text "Revenue Collection" then hide text "Dummy Taxpayer" from the field "Taxpayer". Both fields are showing from related entity Case in this QueueItem view.
I have checked the following possibilities but these are not working.
1- RetrieveMultiple message cannot be used with the QueueItem entity.
2- Tried with entity "SavedQuery" on RetrieveMultiple, but that is giving FetchXML of the view. We cannot change the result of the FetchXML dynamically here also.
3- In the properties of the column "Taxpayer" in the view, we do not have the option to run a JavaScript as my CRM version is 2016. This feature is available in Dynamics 365.
So, there is no supported way to achieve this as per my understanding. Any help/suggestion is appreciated on this issue
In Grid,
You cannot Hide/show column dynamically depending on your condition. Rather you can enable/disable field so that users cannot edit field based on Condition.
Please find Link Article as Example.
This is more of a data captured problem rather than data hide/show problem.
When the case type is "Revenue Collection", the value of the "Tax payer" should be null. Then this problem is solved in grid/view or form and everywhere.
In the Ribbon Workbench, how can I hide the "Closed as Won" button on the Opportunity form based on a text field (accountnumber) in the Account entity?
Issue description
How can I hide the "Closed as Won" button on the Opportunity form based on a text field (accountnumber) in the Account entity? Each Opportunity can have one associated Account. If the accountnumber field is blank, I want the button to be hidden. I'm assuming I should use a Value Rule, but I don't know exactly how to do this for related entities.
If this is not possible to do, what would be the best workaround?
I also have a 2nd related issue. I want to be able to hide the "Collaborate" button that is used for Teams integration, but can't seem to do that in the ribbon workbench either.
You have many solutions... just two of them:
Write a custom javascript that retrieves the value of the related account using web api (here some examples: https://butenko.pro/2018/11/13/showing-ribbon-button-based-on-the-result-of-async-operation/)
Add a text calculated field on the opportunity pointing to the accountnumber of the related account (the syntax for the calculated field is "[lookup name of the account].accountnumber". Then you can use a ValueRule on the new field
On "Price List Item" entity, we have an "amount" field of type currency. We require limiting the user to enter the amount in that field up to 2 decimal places only. Example, if the user wishes to enter 100.100 then he should not be able to write only up to 2 decimal places ie. 100.10Image shows the invalid value allowed to enter
It's not possible without doing something unsupported. You can attach to the key press event of a text field, but not any other type of field.
If you wish to follow a dark and dangerous path, aka the unsupported route (and note that I do not advise this), you can still attach to the underlying inputs. Using something like this in jquery for example:
function onload()
{
$("#amount_i").keypress(...);
}
But that's a rabbit hole I shall not venture down any further. In regard to CRM I'm very much a blue pill kind of guy.
You can hide the field and insert a HTML webresource mimicking the field. In a HTML web resource you are free to manipulate the DOM (i.e. limiting input) without risking breaking anything in the form itself.
If you include the ClientContext.js.aspx in the web resource, you can then copy what's entered in the "fake" field to the "real" field (via parent.Xrm, remember to uncheck 'Prevent cross-frame scripting').
This has the benefit of not requiring tampering with the form's DOM, and an HTML page with a single input field shouldn't be that hard to implement.
The Outlook data model for Appointments includes an attribute called COMPANY. I cannot find where to enter this information anywhere. If I create a new appointment, I can enter start time, stop time, location, etc. It appears I cannot enter the data for COMPANY. Is this accurate? Why have an attribute which cannot be used? How do I use it? Surely I don't have to build a custom Outlook form, do?
Thanks,
GS
I assume you are referring to the AppointmentItem.Companies Property:
Returns or sets a String representing the names of the companies
associated with the Microsoft Outlook item. This is a free-form text
field. Read/write.
This field is not available in the default Appointment form. You would need to customize the existing form or design your own that includes this field.
You asked:
Why have an attribute which cannot be used?
You can use it -- see above.