Description
The scenario is that a user can edit the value in a read only field by pulling up the javascript console and using $form.setValue(...)
My question is, is it possible for a user to somehow get the correct Xpath to use in this command without having access to the "get xpath" command in the workflow composer?
Applies To
11x;12x
Solution/Immediate Workaround
Only way to achieve the same is either using the Xpath from Composer or in the Browser right click on element you wish to debug ; click on Inspect element that will give you the path.
To Retrieve using Inspect Element user need to perform the below steps.
1) In the Browser Right click on Inspect element for the field you would like to retrieve the Xpath
2) In the data link you will be able to see the path which is not exactly like Composer so we need to perform additional steps to get the exact path.
3) Then you will click on Console and write function Utils.formatXpathfromBinding('Paste the Path here')
4) Now you will get the Xpath only thing we need to make sure is to add the slash(\) in the beginning and then can user other Java Function to fetch the value for the relevant field.
Comments
0 comments
Please sign in to leave a comment.