web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Display combination of two fields

(0) ShareShare
ReportReport
Posted on by 1,023

Hi, I have  3 TEXT  fields A, B, C. In field C, I would like to show the combination as this (A, B). Ex : A= Smith B= Sam, then C should be  (Smith, Sam)

Please advise the steps to achieve this in Unified Interface

Thanks.

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    the easiest way is to use a Workflow. Please refer to this blog:

    powerplatformramblingsbystevenblog.com/.../

    You can follow the same steps in Dynamics CRM Online

  • Verified answer
    Marco.P Profile Picture
    2,405 on at

    Hi,

    You could use a workflow or make the C field as a Calculated field:

    powerplatformramblingsbystevenblog.com/.../

    docs.microsoft.com/.../define-calculated-fields

    Hope it helps,

    Marco

  • Verified answer
    Johao Larios Profile Picture
    1,795 on at

    Hello there,

    As mentioned by the other guys you can use business rules and workflows, however I would like to add that you can also use a javascript function for this and register it in the onload event and in the onChange event for fields A and B.

    function combination(executionContext)

    {

    var formContext = executionContext.getFormContext(); // get formContext

    // use formContext instead of Xrm.Page

    var a = formContext.getAttribute("new_fielda").getValue();

    var b= formContext.getAttribute("new_fieldb").getValue();

           if(a!=null && b != null){

                  var c=a+b;

            formContext.getAttribute("new_fieldc").setValue(c);

             }

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 101 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 83

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans