Forums

Forums / Developing Portals / Can we make use of a single CRM Text field twice on Same form ?

Can we make use of a single CRM Text field twice on Same form ?

Thread is closed for posting
5 posts, 1 answered
  1. vmeesaraganda
    vmeesaraganda avatar
    48 posts
    Registered:
    19 Mar 2015
    07 Apr 2015
    Link to this post

    Hi
    We have a requirement that a single CRM Text field will be used twice on the same form in different section and
    we found something as explained below :
    Say there are two sections A Section and B Section and based on some condition we will show only one section on form load.
    User enter some data into Text Field of Section A and submits the form, but the data entered by the user is not saving in CRM as the Text Field of Section B is replacing the user data and submitting the form as result the desired data is not stored in CRM.
    So is there way to make use of a single Text field twice ?

    Last modified on 07 Apr 2015 11:04 by vmeesaraganda
  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    07 Apr 2015 in reply to vmeesaraganda
    Link to this post
    Hello,

    Duplications of any control on a form is allowed but not supported. If you have two CRM Text Fields on the same form then upon submission, the last CRM Text Field's value will be sent to CRM and the first will be ignored.

    A way to get around this is to ensure that all fields that share the same CRM Attribute have their values synchronized. When CRM Text Field A changes, replicate the change to CRM Text Field B and vice versa.

    Regards,
    Clinton
  3. vmeesaraganda
    vmeesaraganda avatar
    48 posts
    Registered:
    19 Mar 2015
    08 Apr 2015 in reply to Clinton Bale
    Link to this post
    Hi Clinton

    So do we have any out of box feature to keep those A and B Text Fields in sync or should be done by script ?
  4. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    08 Apr 2015 in reply to vmeesaraganda
    Link to this post
    Hello,

    There is no out of the box functionality that can accomplish this. The RulesManager also cannot be used on the two fields because it would cause an infinite updating loop. Custom scripts will have to be written to complete this functionality.

    Cheers,
    Clinton
  5. vmeesaraganda
    vmeesaraganda avatar
    48 posts
    Registered:
    19 Mar 2015
    08 Apr 2015 in reply to Clinton Bale
    Link to this post
    Thanks Clinton
5 posts, 1 answered