Google now cards - html

I have a html script for flight reservation that shows me google now cards in inbox.
But when I am trying to embed JSON-ld script tags into the HTML content to get those tags in google now cards, the cards completely disappear.
Has anyone worked on google now cards before or knows how to resolve this issue?

Related

showing live data on Weebly page

Looking for a way to display live data from either webhook, MQTT, or google sheets on a Weebly website.
I get temperature data from TTN and would like to display it in a nice way on a website for customers to see. the GRAPH app for Weebly doesn't work as intended.

Adding image to the SectionHeaderItem in Google Forms Apps script

I've been using Google Apps Scripts to generate Google Forms and sent be email.
However, i've been trying to add a logo to the header section however there is no function or a possible way that I can find online of adding it.
I can add images using ImageItem(), however, this does not add to the header section and stays as a single item at the start of the form.
Is there anyway of adding images to the header section using google apps script or thats only possible using the customizable UI made for designing google forms?
Assuming that for "header section" you mean the form header, the Forms Service doesn't include any class for the form header, so the only way to customize it is by using the Google Forms editor. By the other hand SectionHeaderItem, doesn't allow to insert images, only a title and a description.
Reference
https://developers.google.com/apps-script/reference/forms

Embedding Editable Google Sheets: Need Mobile-Friendly View

Problem:
I need a Google Sheet on our members' daily workout signup page to be both editable and mobile-friendly.
Details:
We have a members-only page on our community rowing club Weebly site that includes an editable schedule. It's a Google Sheet open to all members to sign up for workouts. On desktop it's a properly formatted, editable doc but it's a mess on mobile. All of the tab names are superimposed on top of the table itself in large blue font. Looks like this:
members page mobile view
I've tried embedding the document using the Google Sheet embed code (File--Publish to the Web--Entire Document--Web Page) but this is a view-only, uneditable version. I've set the share settings to "Anyone on the internet with this link can edit" and it still isn't editable once it's embedded on our Weebly site.
The site was built by another volunteer a few years ago. This is the editable but mobile-messy embed code we're using now:
iframe width=1400 height=900 src="https://docs.google.com/spreadsheets/d/FILENAME/edit?usp=sharing"></iframe
And here's the embed code provided by Google Sheet that gives us an uneditable but properly formatted table:
iframe src="https://docs.google.com/spreadsheets/d/e/FILENAME/pubhtml?widget=true&headers=false"></iframe
I've replaced "pubhtml?" with "edit?" but that doesn't work. I've added the widget=true&amp parameter to the new embed code; also unsuccessful. Can't find anybody else with the same problem and Weebly can't help me.
Thanks in advance if anybody can help out. I'm clearly not a developer, just a volunteer and fellow member of the club hoping to help.
Some options:
If you can get your users to install the sheets app on their phone then you can link out to the normal sheets url and it should open on the mobile app.
Use Google Forms for data entry.
Sheets is exposed as an API. There may be a 3rd party tool (that stores the data to a sheet of your choosing) that would help out your specific workflow.

Properly embed Google Apps Script URL into Google Site

In Google Sites, it is possible to embed a Google Apps Script which has been published as a Web App. You just click "embed" and paste the URL of the Web App. It is possible to use the mouse to resize the iframe. However, I could not set the iframe to be of full width. Is that possible? Also, is it possible to make the whole page scrollable (instead of the iframe) when the Web App has some larger height as well? (I actually don't want to use any other functionalities of Google Sites except that it "hosts" my Google Apps Script with a custom URL and that it gets rid of the standard header warning that this Web App is not by Google).
Sorry
Unfortunately, AFAIK, this is not possible within Google sites.
I have experimented with various custom iframe HTML and CSS to try and find a workaround, but due to the way the site is rendered, it will always wrap your custom code in its own HTML and CSS. Any solution along these lines seems like it will be unreliable.
If you would like to see this specific functionality you can always submit a feature request.
My best workaround so far
Start a new site.
Delete all the elements, including the title.
Then add in your webapp embed.
It let me resize it vertically as far down as I wanted, it seems like full width since it is the only element on the page, and it doesn't present me with the warning.

How to Add Hyperlinks to Google Forms user Google Apps Script

I'm trying to use Google Apps Script to add hyperlinked rows to a GridItem, ideally that act as tooltips. Am I trying to do more than is possible with Google Apps Script?
Here's the situation: I have a GridItem type question that has lengthy row descriptions. To clean up the interface, I'd like to present a short summary of the description that, when clicked/hovered, reveals the full text. To do this, I'd need to turn the short summary into a hyperlink. However, I haven't seen any way to insert hyperlinks in GridItem rows. I thought that Google Apps Script may allow me to do this.
So far, I've tried entering a string followed by .setLinkUrl(), using createAnchor('text', url), using markdown, and actually inserting, as text, <a href='http://google.com'>Google</a>' for the row. Nothing has worked so far.
Is this possible at all?
EDIT:
I apologize - I didn't research this question well enough before posting. Turns out Google Forms auto-detects URLs and posts them as links in the live form. I still have an issue with this, though - I'd rather have some specified text displayed to the user instead of the URL (some of my URLs are lengthy). Anyone know how to do this?
You can design the main elements of the Google form the normal way. Then preview the live form, copy the generated html file, hosted in your website.
Then you can replace the <a>...</a> tag that is generated by Google Form by one you need e.g. <a href='http://google.com'>Google</a>
keep sure you don't disturb any styles or code that may be needed by the Google form to work.
This solution need to have your own web hosting.
You will need to point your users to your website not the live form preview.