Filling forms in Salesforce Lightning using console commands in Chrome - javascript

I am trying to automate the filling of a form on Salesforce with the Lightning interface and am hoping this can be done by simply entering a series of commands in the browser dev console or similar (I'm not averse to running a JScript or Python script or other if that would be easier).
Basically the form is a series of what appear to be Java fields (text, combo boxes, check boxes, etc.) and when I inspect the various elements I would like to fill in I can see their various identifiers as shown below without any issue.
Most of the fields have a huge list of event triggers associated with them, such as those below for the above text field.
So is there some what I can use the console (or JS or Python) to quickly and easily set the text to this field in the same way one might select the field and then type in the text?
Thank you!

Related

How to design a web app in accordance with Google Chrome's rule of never disabling autocomplete

Apparently Google Chrome simply ignores the HTML attribute autocomplete="off". From what I have heard, this is a design decision by Chrome and not a bug, so this is not very likely to change in the future. Instead, we as developers are asked to design our web app according to this behavior.
I am working on a web app, which displays a table with multiple student names and a form next to the table. Upon clicking on one of the table rows, the form is filled with data about the selected student. When selecting one of the form input-fields, there are so many different suggestions given, since I have filled out this form for each of the students inside my table. This behavior is absolutely horrible. So, I wonder: How would I have to change my app design in order to abide by Chrome's rules and still not have hundreds of suggestions made whenever I select a form field?

How to highlight/copy multiple text elements in Adobe Acrobat PDF

I've been having trouble finding a solution to this problem. I'm adding scripting to a PDF form for my job, and my goal is to be able to highlight all 3 rows to allow for easy copying, but also keep the work description as the prepare form text elements so I'm able to interact with it via JavaScript.
The issues I've encountered are that if it's multiple text elements, then I've been unable to find a way to highlight the text in all 3 to allow for copying. Or another issue being that the multi-line text box seems to be much larger than where the text will appear, thus moving into other text lines of the form.
Here is how the area looks in preview mode
Here is how it looks in edit mode (Prepare Form)
The only features I want for sure is to be able to copy the entire work description easily, and to keep the work description as an element that JavaScript can interact with.

How do you extract variables from javascript for html web form

Okay I have seen script which I got from this site Adding input elements dynamically to form
I have made some slight changes to it. The objective of the script is to ask a user for an input and then supply them with number of fields. Assume the person puts in 3. I would then want to capture those three inputs as a list and export them to python. I am currently using cgi-bin and python. Those are parameters I have to work with.
How can I pull the elements from the web form using that script
Once I activate the addfileds function. I am unable to see fields in the form below it. I would like to have more than one dynamic fields.

Hidden field validation

I have a hidden value in my form, but when I tried a security scan using HP WebInspect tool, its getting manipulated and shows vulnerability. I tried validating this hidden field but still this tool can manipulate the value. What to do for this?
First of all, check if you're using the last version of HP WebInspect tool (from this point forward HPWT).
Marking a hidden field of one html form as a vulnerability and manipulate it's value cannot be called a good tool.
Check the settings page of HPWT. In the Scan Settings / Method there are options related with forms. Check the autofill web forms options for the forms, and if it don't works set the checkbox for Prompt for web forms values during scan ...
If you don't want the manipulated data affect your code don't try to use this $("#someId").text();.
Hope it help.

Reverse engineering which javascript/ jquery function is being called

I need assistance determining what is doing client side validation on a site.
There is a web form on a site, and it does some client side validation on a field labelled Email (named Question2). This is the page: http://www.home-energy-analytics.co.uk/concrete5.6.1/index.php?cID=132.
If you add a "1" to the email field and then change the focus to another element, you'll see the border turn red. If you try to submit the form, the client prevents it, and shows what looks like an absolutely positioned div with the text, "Please enter an email address". It doesn't seem possible to inspect this element using firefox or firebug. I have checked all the inline scripts and those in separate files, but cannot see what is doing these validations.
It looks like there may be a script which is created dynamically by the client using the ccm_addHeaderItem function in the ccm-base script, but I cannot see how that function is being called, in order to work out the URL of any dynamically created script.
Are you able to find the function(s) doing these validations?
Note, as this is a concrete5 site, I have asked on the concrete5 forums without success.
This is a HTML5 feature. It will be implemented by browser default behavior.
Check the example here http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_type_email
This behaviour can be seen anywhere for a input field with type "email"

Categories