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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Creating three TextBox for single field.

(0) ShareShare
ReportReport
Posted on by

Dear Team,

I am creating new field in Quote Product entity as service tax.

Here i need to create three text box as bellow, where user can enter Tax percent and the percent applicable on specified percent of basic amount of product.

0825.Untitled.jpgHere as above mentioned ST Percent, ST Applicable Basic will be editable for user, where Total ST will be calculated Auto.

Please suggest me better solution to apply the same.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Bas van de Sande Profile Picture
    4,383 on at
    RE: Creating three TextBox for single field.

    Hi Abhijit,

    The solution you sketched seems to be fine, however I think you should pay some more attention to the user interface.

    For me as a user I get scared when I see this amount of text boxes. For starters I would align the boxes vertically with the correct amount of white space between the boxes.

    I hope this helps you a bit

    Bas

  • Verified answer
    Rasmus R. Aardal Profile Picture
    on at
    RE: Creating three TextBox for single field.

    Hello Abhijit,

    You cannot (in a supported way) split one field into three in MSCRM. You do, however, have a couple of options to produce a similar effect. One of them is to use three separate fields whereas only one of them have a label. This gives you the visual effect of the three fields being linked together.

    So, three fields where the ST Percent field has the label "Service Tax" and the following 2 fields have "Show label on form" set to false. The issue with this in your case is the fact that none of the fields have labels to show what values they should contain.

    Your other option is to create a  section with 3 columns on the form with the label "Service Tax", containing 3 fields stacked horizontally. If you want the field label to be above the text box, you may use the Column label instead of the field label to produce the following result:

    ST.png

    In order to autosum the two leftmost fields, you can do that using JavaScript. Edit and set the following function to fire onChange on both of the two leftmost fields:

    function autoSum() {

    var stPercent = Xrm.Page.getAttribute("ST_Percent_field_name").getValueI();

    var stApplicable = Xrm.Page.getAttribute("ST_Applicable_field_name").getValueI();

    var totalST = stApplicable * stPercent / 100;

    Xrm.Page.getAttribute("TOTAL_ST_field_name").setValue(totalST);

    }

    Regards,

    Rasmus

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at
    RE: Creating three TextBox for single field.

    Abhijit,

    My Suggestion, you keep the current Tax field

    Then you create another 3 fields..

    After that, you use javascript or plugin.

    I think you cannot use Business Rule because Quote Product is still using the old-fashioned form.

    But, you can try to add using calculate field.

    Thanks.

  • Verified answer
    Abhijit Kadam Profile Picture
    on at
    RE: Creating three TextBox for single field.

    Dear All,

    Fabulous reply. :) . Thanx a lot. I carried out as bellow screen shot.

    3225.Untitled.gif

    It was good to create three separate field.

  • Shunmuga Profile Picture
    10 on at
    RE: Creating three TextBox for single field.

    Hi Abhijit Kadam

    How you have created this?Can you share ss.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans