I have one module which contain data in table(like: checkboxes, Office, month, year,PDF and Send button).
See this link.
I want to send multiple document via WhatsApp by checking with checkbox field, after click on send button in bottom left-corner of the form.
Then one popup will generate, and user will enter mobile no in TextBox of popup window and after clicking on submit button list of PDF will be send on given mobile number.
How to do this? or give any suggestion/link.
Thanks in Advance
Related
There is an ASP form which I need to fill recurringly so I thought of automating the process. But the thing is it only accepts user clicks and no other input method. That is, it records input only when user clicks on the radio button. I tried using:
document.getElementsByName("elementName").value = my_value;
but it doesn't seem to work. Is there a way around this?
I wish to navigate through multiple pages in a pop-up block. That is, my main page would be inactive when i navigate through pop-up flow as below
[[Main Page]]
[popup-page1]--Next--> [popup-page2]--Next--> [popup-submit page3] --Submit-->
[[Main Page]]
Each page has different set of attributes that are populated by user input such as radio buttons and text fields etc
for instance, below are some of the attributes that are filled on each page.
[page1]--> your name, DOB, country
[page2]--> your preference, your package, direction
[page3]--> email address and submit
How can i retain these values and submit as a form? Do I need to submit each popup page as a separate form or in one shot by retaining all these value till the end?
Note that my application is in strut2 and usually for page navigation I take the help of model driven arch. (putting the fields in one bean and keep a track of value changes using hidden attributes from one form to another)..How can this be achieved using pop-ups. I have limited knowledge about sj:dialog
EDIT
Use Jquery to simulate pop-up navigation by display none and block property. Then, for submit do an AJAX call, this will perform an async call in the background.
In order to navigate through multiple pages in a pop-up block.
I created multiple divs inside the parent div and on click of each continue button I took help of show and hide using Jquery.
At the end of the flow, submit the request to an URL using an AJAX call (GET request)pass values entered by user as params.
I have a simple Lotus Notes XPage with only an editable RichText dialog that is embedded in a bigger form using an iframe.
The bigger form has a submit button, which triggers some javascript and finally a notes agent which saves all non-richtext values that are inside the bigger form.
Of course the user shall not have to use two submit buttons, so I won't have a (visible) submit button for the XPage. Instead, I want to use javascript to tell the iframe to submit the form.
Using iframe.document.forms[0].submit() does not work - the form is indeed submitted to the Notes server, but XPages won't save the changes I made.
Using a simple XPage button with the action "Save Data Sources", saving works like a charm, but I don't want the user to have to click two buttons in the correct order.
I also tried the following javascript code to fill some invisible fields with the values that IBM submits to the server, but this does not help either:
iframe.document.forms[0].elements["view:_id1:inputRichText1_h"].value = iframe.document.forms[0].elements["view:_id1:inputRichText1"].value;
iframe.document.forms[0].elements["view:_id1:inputRichText1_mod"].value = true;
iframe.document.forms[0].elements["$$xspsubmitid"].value="view:_id1:_id4";
iframe.document.forms[0].elements["$$xspsubmitscroll"].value="0|0";
iframe.document.forms[0].submit();
So now I ask you: how to correctly submit that form content, without the user actually clicking the XPages button? Can I programmatically trigger a click on that button, which would be indifferent from a human actually clicking, except for the human?
have an ordinary div with a fixed id and inside this div have a computedtext that will compute the clientsideid of the "save button" and return that inside the div
and use this clientside js code to do the actual click
var id=iframe.document.getElementById("button").innerHTML
var button=iframe.document.getElementById(id)
button.click()
We have an online application html form that pulls the open positions into a menu/list select field from an xml file. You can see the form here: enter link description here
For each open position there is a job posting page with an apply now button which links to the application page. We'd like to pass the position to the menu/list select field in the form when a user hits the apply now button.
So If I make a form on the job posting page, and use a hidden field to hold the position from that page, then how do I pass that variable to the online application to select the position.
You need to set the default value to your select box.
After you load your page,
document.getElementById("selectbox").value = hiddensValue;
How can I fill out and submit this form remotely: http://mta-nyc.custhelp.com/cgi-bin/mta_nyc.cfg/php/enduser/ask.php
The form asks for email and then it has a pull down menu and fields for Subject and Question.
Clicking the Next button takes you to a new page and in that page you click submit.
Can I fill this form and submit with one click from my site?
I will have a form in my site where the user will fill out his email and I will have pre-populated fields for Subject and Question and when the user will click the submit button the remote form will be filled and submitted.
How can I do this (with python and javascript)?
If you are submitting the page to your python backend, check out Mechanize.
Try twill - http://twill.idyll.org/python-api.html. I't some wrapper of Mechanize.
Issue a post to ~/api/feedback with the same headers and form data that their form produces?
Open up Chrome dev tools or whatever, go to the network tab, fill out the form manually once and copy the last HTTP POST?
Depending on the type of feedback on that form, the data will change. The data I posted looks like:
feedback: {"name":{"first":"Test","last":"Test"},"email":"test#test.co","feedbackType":{"service":{"sid1":10000,"sid2":14000},"categories":{"cid1":14308}},"attributes":[{"id":"branch_line_route","value":"F"},{"id":"traincarnumber","value":"1"},{"id":"date_of_event","value":"2020-09-10T13:35:47.318Z"},{"id":"time_of_occurence","value":"15:37:37"}],"comment":"Nice train"}