Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to prototype an app and I thought Apps Script could be a quick way to do this, but being new to Google toolset I need someone to put me in the right direction to figure what is available and what components I need to put together to get this working.
Here's what the app does:
I put in an order in a form on a web page. (Google Forms? App Script web app?)
Some inputs in the form are dynamically shown depending on previous inputs.
The inputs are validated.
There is a list of receivers with mobile numbers (Google Spreadsheets?)
When submitted, the order is sent to a web service (Twilio REST API) that sends SMS text messages to each of the receivers.
Before submitting I want to be able to see a preview of the generated text message and the total cost for sending SMS.
After submitting, the order is also logged (Spreadsheets?)
In the text message there is a link to a web page that is specific to that order for more details
I don't need specific code but I need to find out what to use for each step. Also any examples or samples that could help me on the way would be very useful.
Update - My specific question for now to get started is:
Is it possible to use Google Forms to have dynamic fields (entering data in one field defines next fields with their choices), custom validations (validations are more than regex and multiple fields are validated together) and previews (when entering data, show some live calculations)? If not, how can I use Apps Script with Html to do that?
Thanks!
So you might what to use a Google Form, I do not know what type of Order you are trying to do, but in my example I will be assuming that an order is some type of department work order that is submitted and you want it to send a txt message to "supervisors" so that they can review the work order.
Here is a poorly drawn overview of how I envision this.
Overview Image
How I would Start
Create your form.
When you create a Google Form it automatically creates a Google Spreadsheet.
You are able to input validate the data on the form itself OR if you are really picky, you can validate the data on the spreadsheet itself with Formulas or even app script itself.
Here is a start on setting rules on your form.
Email validation
Advance Validation(Pretty much everything else)
you set responses to direct the form to different pages or sections of the form based on an answer.
Image With example on how to base questions on previous answers
Prepare your spreadsheet
So you already have a sheet for your Form Submission. Lets make another Sheet for your receivers. This way you can edit your receivers mobile numbers so your App Script does all the heavy lifting by cycling through this sheet when sending the messages.
You can also add any other information you need
Google App Script
Ok, The fun part. Now you have code. This is where you can get everything else you want or need. I would first write a function that all it does is collect the receivers data from your receivers sheet. Link to SpreadsheetApp I would recommend looking at the guide to get you situated on how things work in App Script.
The Second function would be the Twilio API. I have not written anything for Twilio yet but here is what I found that I would use to get started to send a message. Of cousre you will have to modify it to cycle through your recipients and anything else you would want to do. I think this Post will be able to get the Twilio Door Open
Here is also Twilios Documentation on sending SMS
I think that is plenty information for you to get a leaping start into this very interesting project you have. If you have any further questions please ask. If I don't know the answers I can definitely help point you in the right direction.
You will first have to start this project before I can get into some detail.
Hope this helps !
Related
Hi I’m building a front end web app using reactjs, my app will map over different array of dogs/cats/animals with multiple props and a couple images each. The ui has a search box which then filters out relevant animals.
My question is if my list were to get quite large, do I need to have it stored in a back end ? Or can it all be stored in front end, there will be no sensitive information or anything. So im not worried about security. I do not need to receive any information from the users. Basically it’s just a website for people to browse through.
And my second question. Once deploying to a host, Im currently leaning towards AWS. Is updating/adding/subtracting from my arrays simple as deleting the file and adding the new one into the bucket ??
Sounds exciting! But let's first back up a bit, and take stock of what we're trying to do. Essentially: we want an app that will show a bunch of images with functionality (e.g. filtering).
All images/photos (e.g. this cat photo) are hosted somewhere. Period. So, you can be the one responsible for hosting the images, or you could just have <img /> tags in your react app and refer to an existing img src links, where the image sources are being hosted by someone else.
So to answer your question: my question is if my list were to get quite large, do I need to have it stored in a back end ?
Not necessarily - if you're just referencing a bunch of images from a site that someone else is already hosting, then you're good.
As for this point: Or can it all be stored in front end, there will be no sensitive information or anything.
This question is kinda hard to answer, because nothing is really ever 'stored' in the front-end (let's ignore caching). Images live on the server, and the client (e.g. your chrome browser) makes requests to the server to get the images.
Now: if you want to upload your own photos or let users upload their photos. That's a very different story.
You would want to use s3 buckets. They could host your images.
However, based upon your post, I really think you should start step-step, and not host your own images (i.e. not have a backend), and instead just start by using images already on the internet. Good luck :)
I'm an api developer who works at a company looking to move from a large CMS to a React web front end framework.
I've been given a new requirement that all multi page forms on our website should be restartable going forward and I have to solution design something for this.
Lets take the following example...
Form 1 - Select your product
Form 2 - Enter your details
Form 3 - Enter Payment details
The way I see it working is that the the first field on the form would be your email address. From there one for every next button click in the multi step form (i.e. after submission of each step) I'm thinking maybe the form fields get added to the session and maybe on session timeout if the form has not been submitted an api is called to persist those bits of the form that have already been submitted into DynamoDB using email address as an identifier.
That means if I had an incomplete form and come back, when I enter me email address it might be able to pick up my persisted data from DynamoDB.
I'd like to get some thoughts on this solution from the Reactjs developers. And if this has been done previously by others I'd love to hear your ideas on alternatives.
thanks
I am trying to make a web-page which displays the dynamic web page - basically it displays a table comprising of Name, IP_Address, and Group Name with used check/uncheck box. This webpage can run on a different tcp socket so it can be
https://myjenkins:5909 . Next, I want to add this table information in the mongo-db and read back the data and show on the web page - that table. What are the required steps for me? First is it possible? Here is my understanding that I have to write a back hand code using Jenkins plugin. Now, how to add the front end page like my custom page in Jenkins. Also, how database can be handled by the backhand Jenkins plugin? Sorry, I am new to these things. Any idea or details will help me. Also, is it possible to use LDAP based user id and password in my form.
General question: Assuming someone has normal viewing access to a form/survey (say a google form as an example), what would be the ways to tell if the form is actually using the data you imputed and doing something with it rather than just pretending it was submitted?
I have a specific case like this where I think that I'm looking at a fake form that doesn't submit to any database, etc. but I'm not entirely sure what I would be looking for to confirm that.
I initially looked to see what the form submitted to and it goes to another html page, and I viewed the code on that page too, and it has only html and no PHP or JS. Is it still possible that it submits to a database?
You cannot know what, if anything the server will do with the submitted values unless you have access to the code running on that server.
I am looking for some initial direction on this one because I cannot seem to find my way with it. Let me explain...
I am developing a website wherein a logged in site member (Joomla 1.6) can fill out a simple form and attach a pdf to be uploaded upon submission. The user then clicks the submit button and the page will refresh to a new and unique web page.
User Submits data on http://www.examplesite.com and then after submission a new web page is generated that is called http://www.examplesite.com/userSubmittedValue
This newly generated web page would come from a template that is specified by the administrator and, most important, it will display all of the information that the user submitted. Also, there would be a link to download the pdf they uploaded. The user could then view a list of all the pages they have created in this manner via their profile.
I have seen this all over, but I am at a loss for how to generate this. Any help is much appreciated.
This is not something you will be able to easily do or get a detailed answer for here. If you just wanted to do the submission form with a thank you page that shows the data submitted you could use any number of form wizard type extensions - http://extensions.joomla.org/extensions/contacts-and-feedback/forms
If you just needed a way for users to upload PDfs and have access to them you could use one of the file management extensions that offer front end upload features - http://extensions.joomla.org/extensions/directory-a-documentation/downloads
If the additional data that is being submitted is simply data related to the file - title, description, etc then one of the file download components should work fine for you. The choices are limited in 1.6 at this time though so you might have to go with 1.5 to get the extension that works best for your needs.
So this probably isn't the best way to do it if your using Joomla but it just might help.
I would use PHP and inside of you're directory have a file like "template.html". Then I would create some php to handle the task of....
Opening "template.html"
Finding and replacing the values that the user passed you
Save the "template.html" under a new name (userSubmittedValue.html)
Again, I never really use Joomla. If you were to try this I'd suggest checking out php's file system functions (http://us2.php.net/manual/en/ref.filesystem.php).
Hope this helps a bit.