0

My salesforce page has dropdown and textbox, but require a double click to enter

dropdown

textbox

Here is DOM for Ground snow load enter image description here my thought was to change the value of dropdown by id document.getElementById('00NE0000000eRDx').value = "107"; but this does not work

I need the value of the dropdown and the text box to be changed with my variable in javascript and i need them saved (i could click save in a seperate step) My thought was to use sfdcPage.getInlineEditData("00NE0000000eRDx").openField or something like that since document.getElementById did not work

using the Salesforce Classic UI where I can input using browser automation. I was hoping to use the console and input javascript to change the value of the textbox or to change the dropdown value/text chosen. Im not sure i understand the use apex:actionFunction. would you be able to suggest more clearly how to use this?

2
  • 1
    Are you building a Visualforce page? This looks like standard Salesforce Classic UI; are you working on something like browser automation? Could you make an edit to flesh out your use case?
    – David Reed
    Sep 25, 2020 at 19:31
  • We would need to see some code to give you a direct code answer.
    – sfdcfox
    Sep 26, 2020 at 17:16

1 Answer 1

0

With inline editing, that's how it works. If you want to change the value while you're not inline editing, use apex:actionFunction to set the new value in the View State, and the page will update accordingly.

1
  • please see edits. i think you are on the right track but i need it all to be able to work from console. i am simply taking data from somewhere else and want to input into sf Sep 28, 2020 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .