Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

overlap 2 different option on same place in CRM

(0) ShareShare
ReportReport
Posted on by 115

I have 2 set of payment terms and one yes and no option, one is option set and one is text field that allow user to key in text. 

if the option set is set to yes, the option set will appear and the other set with text will not appear in the view.

As my arrangement is like image below:

4336.pastedimage1665392750561v1.png

if the middle is set to invisble form view, it will left empty space on the middle. is there any settings in customisation can done? if middle is disappear from view, the lower one will go up automatically. 

  • Suggested answer
    RodRodriguez Profile Picture
    on at
    RE: overlap 2 different option on same place in CRM

    Howdy!

    You could set up a JavaScript on that page that fires on load of the page, and when the optionset field changes.  That JavaScript hides or shows the 2nd field based on the status of the "Yes/No" option set:

    Here is a sample of what I am talking about, by default this sets the field you want to hide as hidden until the option to show it is selected:

    function hideOrShowFieldFromOptionSet(executionContext)
    {
      var formContext = executionContext.getFormContext();
      var fieldObj = formContext.getControl("FieldYouWantToHideOrShow")
      var optionSetFieldValue = formContext.getAttribute('FieldWhereTheValueDeterminesIfTheOtherFieldWillShow');
     
      fieldObj.setVisible(false);

      if (optionSetFieldValue.getValue() == 2)
      {
        fieldObj.setVisible(true);
      }
    }
  • Martin Dráb Profile Picture
    231,939 Most Valuable Professional on at
    RE: overlap 2 different option on same place in CRM

    Moved from Dynamics 365 Finance Forum.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,939 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans