Show/hide on a prefilled form
Date : March 29 2020, 07:55 AM
may help you . I have a form with a question. If answered yes, a set of checkboxes appears; if answered no nothing happens. , just trigger the click event .. in the DOM ready event.. $(function(){
$('input[name=selector]').click(function(){
var selector = $(this).val();
if (selector == 'no') {
$('#subset label').addClass('disabled');
$('#subset input').attr('disabled', 'disabled');
$('#subset input').attr('checked', false);
} else {
$('#subset label').removeClass('disabled');
$('#subset input').removeAttr('disabled');
}
});
$('input[name=selector]:checked').click();
// Will trigger the click event on page load
});
|
Allowing users to sign in to Spring Security app via Google+ Sign in or OAuth 2.0
Date : March 29 2020, 07:55 AM
|
Do I need OAuth - Google Contact Form data (all) to Sheet then to Email
Date : March 29 2020, 07:55 AM
To fix the issue you can do I want to use Google Form as a contact form on a website, and email the contents of the form (not just a notification) to a specified address. https://www.googleapis.com/auth/gmail.send
|
How to put the optional values of Checkbox and Multiple Choice in the prefilled form in Google Apps Script?
Date : March 29 2020, 07:55 AM
like below fixes the issue There does not seem to be a way to directly state that you want to set the response to "other". However, you can do it manually, and it shows how the pre-filled URL is crafted. I wrote some code (below) that will grab a list of items in a sheet (range B2:B4) which are supposed to be the responses to be pre-filled in "other. The URLs will be logged, but you can use them how you please. Also, please keep in mind that this is only for the "other" question, the list where you get your data will pre-fill "other" regardless of what it says. function myFunction() {
var ss = SpreadsheetApp.getActive();
var formUrl = ss.getFormUrl(); // Use a form attached to sheet
var form = FormApp.openByUrl(formUrl);
var items = form.getItems();
var formItem = items[0].asMultipleChoiceItem(); // The question
var id = formItem.getId().toString()
var otherResponse = ss.getRange("B2:B4").getValues();
for (var i = 0; i < otherResponse.length; i++){
var string = "__other_option__&entry." + id + ".other_option_response=" + otherResponse[i];
var other = formItem.createResponse(string);
var respWithOther = decodeURIComponent(form.createResponse().withItemResponse(other).toPrefilledUrl());
var firstId = respWithOther.substring(117, 127);
var finalUrl = respWithOther.substring(0, 151) + firstId + respWithOther.substring(161, respWithOther.length);
Logger.log(finalUrl);
}
}
|
Azure AD B2C Sign Up with Email Invitation Does Not Show Sign Up Page
Tag : azure , By : Karina
Date : March 29 2020, 07:55 AM
|