this is showing on adding web resouce html it is not executing
*This post is locked for comments
this is my whole number field, option set having 100,000,000 first value and then continous
Hi Manikanta,
The values in the whole number field should be greater than 100000000 for them to be custom option set values.
no execution i changed the fields to whole number and single line
The problem is with the code.
The option set values can only be whole numbers.
The fields new_set should be a whole number field and new_set1 should be a text field.
var selectedOption = parent.Xrm.Page.getAttribute("new_set").getValue(); //Get the whole number value if (this.checked) { if (selectedOption == null) selectedOption = rvalue+""; else selectedOption = selectedOption + "," + rvalue } else { var tempSelected = rvalue + ","; if (selectedOption != null) { if (selectedOption.indexOf(tempSelected) != -1) selectedOption = selectedOption.replace(tempSelected, ""); else selectedOption = selectedOption.replace(rvalue, ""); } } parent.Xrm.Page.getAttribute("new_set").setValue(selectedOption); //Set the selected option set value which is a whole number to the field
am i need to have any number field or can i use both single line of fields
yes the code disappeared but the problem is no o/p
Hi Manikanta,
Open your HTML web resource.
It seems you have pasted your code into RichText editor, instead of the source. Make sure you paste the code under Source Tab in web resource editor.
See the screen shot below.
Hope this helps.
Hi gopalan what is the issue pls clarify
i replaced as u said it havent executed and it just changed in the code form. why the code is displaying on the form( image 1)?
here new_op1 = option set
new_set & new_set1 both r single line of texts. am i need to use whole number field in that html?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156