Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Sales updates!Learn about the key capabilities and features of Dynamics 365 Sales and experience some of the new features.
Download overview guide | Watch Sales video
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I am trying to get a field value from Quick View form and need to set that value in another field. In the main form properties I have added this js in event library and in Event Handlers added sdk.formOnLoad to load this form onLoad.
I didnt do any event handlers in the fields where the value should set from quickview. I am able to access the quick view field and show in alert. But I couldn't set that value in the local field.
I am able to see the field value in alert but not able to set the accessed value in field.
Looks like there is something in this line
alert before this line is getting executed but alert after this line is not getting executed
Can you give some information about the "type" of the source field and the field which you are trying to set ?
Also please confirm that you are trying to get and set the value in same quick create form correct ?
I have tested the code your provided. It can work fine on my side. Do you have any error message?
Here are some suggestions for you to troubleshoot it:
1. Please make sure your field name is correct.
2. It seems that blocktest field’s type is string and blockid field’s type is number. If so, please change your code formContext.getAttribute("blocktest").setValue(blockidvalue) to formContext.getAttribute("blocktest").setValue("" + blockidvalue) to have a try.
Steve Zhao Amit Katariya007
the type of the source field "blockid" is whole number in quick view. I am trying to taking this field value which is in quickview, and set that value to another field - "blocktest" is whole number not in quick view.
take the value from quick view and set it out of quick view.
I am able to alert it but not able to set it in "blocktest" field
@Steve Zhao @Amit Katariya007
I tried something randomly and it helped.
---- changed to ----
Business Applications communities