A viewer asks for one tool to manage disparate contacts, FedEx fails big time and entrepreneurial coach, Noah St. John helps you get your foot off the brake.
I'm looking for a decent way to track form abandonment. Ideally, I would like to see how many people start filling out a form but do not complete it, as well as the last field that was filled out.
The website is a fairly large Wordpress site with quite a few forms. Some of these forms are to register for events, some are for donations, some are for information requests.
My first attempt at this was adding a generic jquery that bound functions to all forms on the site. When a form element was blurred, I would trigger a Google Analytics event with the name of the form, the name of the field, and whether or not it was filled. I expected to be able to go to the Event Flow section in Google Analytics and see the flow of these form events, however since there are so many forms and other events occurring on the website, Google wouldn't let me break them out very well. The other issue was the Quform doesn't name their fields anything relevant, and it doesn't look like we can name them ourselves. This results in a lot of ugly form names that don't mean anything without cross-referencing the actual form.
Does anybody have any suggestions on how I can achieve more usable form abandonment metrics in a scenario like this?
Next week several Googlers will be attending and presenting at the 41st ACM Technical Symposium on Computer Science Education ( SIGCSE 2010 ). From March 10-13, Leslie Hawthorn...
A viewer asks for one tool to mange disparate contacts, Feded fails big time and entrepreneurial coach,Noah St John helps you get your foot off the brake.
A viewer asks for one tool to manage disparate contacts, FedEx fails big time and entrepreneurial coach, Noah St. John helps you get your foot off the brake.
Is there a way to force a non-secure form post to be secure? I understand there are ways to automatically resolve an http URL as an https URL but with form posts, is this type of redirection too late? Will the posted data have already gone through the wire as plain text?
Im developing an application which is dealing with the android contacts API. I implemented methods to insert, update and query contacts. So far everything worked (writing and reading contacts).
At one point in my project Im experiencing a strange behaviour.
I insert a contact using batch mode. I receive the URI to the RawContact. I do this in a background thread.
// use batchmode for contact insertion
ArrayList ops = new ArrayList();
int rawContactInsertIndex = ops.size();
// create rawContact
ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI)
.withValue(RawContacts.ACCOUNT_TYPE, ConstantsContract.ACCOUNT_TYPE)
.withValue(RawContacts.ACCOUNT_NAME, accountName).build());
ops.add(createInsertOperation().withValueBackReference(Data.RAW_CONTACT_ID, rawContactInsertIndex)
.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE)
.withValue(StructuredName.DISPLAY_NAME, displayName).withValue(StructuredName.GIVEN_NAME, firstName)
.withValue(StructuredName.FAMILY_NAME, lastName).build());
//other data values...
ContentProviderResult[] results = context.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops);
if (results.length 0) {
result = results[0];
}
Then i request and store the lookup uri
RawContacts.getContactLookupUri(this.getContentResolver(), myContantRawContactUri);
I am able to query the contact using the rawContactUri directly after inserting it (in the same thread). The lookup uri returns null.
Uri rawContactUri = appUser.getRawContactUri(ctx);
if (rawContactUri == null) {
return null;
}
String lastPathSegment = rawContactUri.getLastPathSegment();
long rawContactId = Long.decode(lastPathSegment);
if (rawContactUri != null) {
contact = readContactWithID(rawContactId, ContactsContract.Data.RAW_CONTACT_ID);
In a different place in the project I want to query the contact i inserted by the stored lookup uri or raw contact uri. Both return no rows from the content provider. I tried it in the main thread and in another background thread.
ctx.getContentResolver().query(ContactsContract.Data.CONTENT_URI, null, ContactsContract.Data.RAW_CONTACT_ID + " = ? AND " + ContactsContract.Data.MIMETYPE + " = ?", new String[] { contactID + "", ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE }, null);
My first thought was that it could be related to the context.getContentResolver(). But the android documentation states, that the ContentResolver objects scope is the application's package, so you have on ContentResolver for the whole app. Am I right?
What am I doing wrong? Why does the same rawContactUri return the contact at one place and does not on another place? And why do I get a lookup uri from a raw contact, which is not working at all?
I am new to php programming..
I have validated the form elements(input box,checkbox).. I am facing problems with form submission could you please help me out on this?
Hello,
I cannot $_post['value_to_be_posted'] value into a <form><input type="hidden" value="<? echo $_post['value_to_be_posted'] ?>"></form> in chrome but works in IE and ff.
Any ideas
Thanks
Jean
The Oracle Certification Program has several email aliases that you can use depending on what you need to accomplish. In this short video, Harold Green shows you how to contact those who can best help you:WATCH VIDEO (1:54)
QUICK LINKS:[email protected][email protected]@oracle.com
I'm trying to import several thousand contacts into Outlook 2011 for Mac. Everything is working well except the Notes field as I cannot figure out how to get new lines / carriage returns into it.
There is no documentation for the exact format that Outlook supports. After searching the web and experimenting I have tried:
Creating a single contact in Outlook with Notes containing several lines of text. I then export the contact to a csv, deleting the contact in Outlook, then re-import. All lines in Notes merge together :-/
Following tips I found such as containing new lines around quotes. e.g. http://creativyst.com/Doc/Articles/CSV/CSV01.htm (search for line-break)
Switching the CSV format from DOS to Unix, experimenting using manually injected ctrl-characters such as ^M etc.
I would include an example export/import but unfortunately the the new breaks included do not work well in a SU code block.
I'm not sure if this problem is specific to Android, HTC or Sense UI; apologies!
Phone: T-Mobile G2 aka HTC Hero
OS: Android 1.5
App: Messages
Scenario: I receive a text from someone not in my Contacts, so just have their number. I want to add them as a new contact.
Problem: I can't (click on the number and I can call them; long press on the message and I can add to an exist contact).
Is there any way I can add a new contact simply?
I have Nagios installed with traditional configuration files. I have created some contact groups and assigned them to hosts.
For web UI I'm using check_mk. And here's the question:
Check_mk supports showing hosts/services based on contact group membership. But I can't use the Nagios contact groups in check_mk. (Result should be that if person XYZ is logged in, he see only hosts and services assigned to him.)
My users are in LDAP (I'm using check_mk login form, not apache authorisation).
I can't find any information about this in documentation so if someone have experience, please tell me how this works.
The problem is that I cannot let everybody be admin and receive all alerts...
I want to restore one contact from my Address Book with Time Machine. To do so, I select the contact in Address Book. Then, I press the Time Machine icon in the dock. Then my address book is "taken into space".
However, when I browse back in time (either pressing the arrow back, or selecting a time on the right), the contact details do not change. And I am sure the data has been changed between dates. Also, when I do press restore, it's still the new data, not the backup.
Is this a bug, or am I doing something wrong?
I'm using OS X 10.6.3 in combination with a external USB drive on an iMac.
I am using asp.net mvc2 and having a basic Page that includes a Partial View within a form
<% using (Html.BeginForm())
{ %>
<% Html.RenderAction("partialViewActionName", "Controllername"); %>
<input type="submit" value="Weiter" />
<% } %>
When I submit the form, the httpPost Action of my Page is called, and AFTER that the httpPost Action
of my Partial View is called
[HttpPost]
public virtual ActionResult PagePostMethod(myModel model)
{
// here I should know about the validation of my partial View
// If partialView.ModelState is valid then
// return View("success");
// else return View(model)
}
[HttpPost]
public virtual ActionResult partialViewActionName(myModel model)
{
ModelState.AddModelError("Error");
return View(model);
}
But as I am doing the Validation in the httpPost Method of my Partial View (because I want to use my Partial View in several Places) I cant decide if my hole page is valid or not.
Has anyone an Idea how I could do this? Isn´t it a common task to have several partial Views in a page
but have the information about validation in the page action methods?
Thanks very much for your help!!
I think it would be very useful to create client side form validation up on the symfony2 Form and Validator components.
The best way to do this would be to pass the validation constraints to the form view.
With that information it would be possible to make a template that renders a form field to something like this:
<div>
<label for="form_email">E-Mail</label>
<input
id="form_email" type="text" name="form[email]" value=""
data-validation-constraints='["NotBlank":{},"MinLength":{"limit":6}]'
/>
</div>
The JavaScript part then would be to find all <input> elements that have the data-validation-constraints attribute and create the correct validation for them.
To pass the validation constraints to the form view i thought the best way would be to create a form type extension. That's the point of my Question: Is this the correct way? And how is this possible?
At the Moment my form type extension looks like this:
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\Form\FormBuilder;
class FieldTypeExtension extends \Symfony\Component\Form\AbstractTypeExtension{
public function getExtendedType(){
return 'field';
}
public function buildView(FormView $view, FormInterface $form)
{
// at this point i didn't find a way to get the
// validation constraints out of the $form
// the `getAllValidationConstraints` here is just an example
$view->set('validation_constraints', $form->getAllValidationConstraints());
}
}
How can i get all validation constraints applied to one form field out of the FormInterface object?
I have a simple form with text input and text area, but when I submit it the variables seems to be array items instead of just string values?
the form
<%= form_tag(home_kontak_path, :remote => true) do %>
<label>Jou epos adres</label>
<%= text_field(:epos, "", :placeholder => "Jou epos adres", :id => "epos", :class => "input-block-level") %>
<label>Boodskap hier</label>
<%= text_area(:boodskap, "", :rows => "5", :placeholder => "Boodskap hier...", :id => "boodskap", :class => "input-block-level") %>
<%= submit_tag "submit" %>
<% end %>
console output
Started POST "/home/kontak" for 127.0.0.1 at 2012-11-23 11:53:03 +0200
Processing by HomeController#kontak as JS
Parameters: {"utf8"=>"?", "authenticity_token"=>"i+5UWaQeBu7LYGPFBNAbum+67VzyyC82JN2wMlLc/UU=", "epos"=>["text box value"], "boodskap"=>["text area value"], "commit"=>""}
what i would like it to be
instead of
"epos"=["text box value"]
i want it to return
"epos"="text box value"
i am using asp.net web forms and i am using bassistance.de jquery validation.. i have bunch of fields in the form and its validatating how it suppose to but its still executing my code behind code, why is it doing that?
here is my code:
form:
<script type="text/javascript">
$(document).ready(function() {
$("#aspnetForm").validate({
rules:
{
<%=txtVisitName.UniqueID %>:
{
maxlength:1,
//minlength: 12,
required: true
}
.................
},
messages:
{
<%=txtVisitName.UniqueID %>:
{
required: "Enter visit name",
minlength: jQuery.format("Enter at least {0} characters.")
}
............
},
success: function(label) {
label.html(" ").addClass("checked");
}
});
$("#aspnetForm").validate();
});
</script>
<div >
<h1>
Page</h1>
<asp:Label runat="server" ID='Label1'>Visit Name:</asp:Label>
<asp:TextBox ID="txtVisitName" runat='server'></asp:TextBox>
............
...............
<button id="btnSubmit" name="btnSubmit" type="submit"> Submit</button>
</div>
and i have a external .js file referencing to my web form page.
$(document).ready(function()
{
$("#btnSubmit").click(function() {
SavePage();
});
});
i have a WebMethod .cs and i have bookmark and it does hitting that line of code even thoug my page is in invalid state.
how would i fix this?
thanks.
I have this group of radio buttons in which each of individual button has of its own position set through style attribute. I would like to how can I archive the same by using drupal form api. I found how to style as whole but, not as individual control within group. Here's how my html code look like -
<input type="radio" name="base_location" checked="checked" value="0" style="margin-left:70px;float:left;"/><span style="float:left;">District</span>
<input type="radio" name="base_location" value="1" style="margin-left:50px;float:left;"/><span style="float:left;">MRT</span>
<input type="radio" name="base_location" value="2" style="margin-left:60px;float:left;"/><span style="float:left;">Address</span>
And this is the drupal code I'm stuck at -
$form['base_location'] = array(
'#type' => 'radios',
'#title' => t('base location'),
'#default_value' => variable_get('search_type', 0),
'#options' => array(
'0'=>t('District'),
'1'=>t('MRT'),
'2'=>t('Address')),
'#description' => t('base location'),
I'm aware of #type=radio existence. However, I do not know how to group all my radio buttons together in this regard. If I use same array key for all of them, they would collide each other. If I don't, they aren't seen as part of the same group. I thank you in advance.
This is a very specific instance where I'm having difficulty getting Zend Form to produce the correct output and supply the correct validation. I may have to go create a composite element but thought I'd ask here first. Here is the HTML I'm trying to get Zend Form to produce. I'd like this to be able to work where if the validation doesn't pass that the error messages still show up inline with the field that produced the error.
<tr>
<td>Budget</td>
<td>
<input type="radio" name="budget" value="unlimited" /> unlimited
<br />
<input type="radio" name="budget" value="limited" /> $ <input type="text" name="budget_amount" /> every <select name="budget_period">
<option value="day">day</option>
<option value="week">week</option>
<option value="month">month</option>
<option value="year">year</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td><input type="checkbox" name="include_weekends" value="yes" /> include weekends?</td>
</tr>
The user can choose either unlimited or limited for the budget value, however, if they choose limited, then they are required to enter a value for the budget amount field and choose a value from the select for the budget period field.
I'm noticing this error more and more in my error logs. I've read through the questions here talking about this error, but they don't address what I would like to do (see below).
I'm considering three options, in the order of preference:
1) When submitting a form (I use formviews almost exclusively, if that helps), if potentially dangerous characters are detected, automatically strip them out and submit.
2) When submitting a form, if potentially dangerous characters are detected, alert the user and let them fix it before trying again.
3) After the exception is generated, deal with it and alert the user.
I'm hoping one of the first two options might be able to do somewhat globally...I know for the 3rd I'd have to alter a TON of Try-Catch blocks I already have in place. Doable, but labor intensive. I'd rather be proactive about it if at all possible and avoid the exception all together.
Perhaps one approach to #1 would be to write a block of code that could loop through all text entry fields in a formview, during the insert/update event, and strip the characters out. I'm ok with that, but I'd rather not have to heavily alter all my Insert/Update events to accomplish this. Or maybe I just create a different class to do the text checking/deleting, and only insert 1 line of code in each Insert/Update event. If anyone can come up with some example code of any of these approaches that would be a help.
Thanks for any ideas or information. I'm definitely open to other solutions too; these are only the 3 that came to mind. I can say that I don't want to turn request validation off though.
How can I change a form's input value with javascript depending on witch combobox item is selected. I have a form with some imported values, and there is a field of witch imported value can be changed via a combobox. In my case:
print("<input type='hidden' name='issue_array[{$issue["nr"]}][\"supplier\"]' value='{$issue["supplier"]}' />");
I have a combobox, that if I change it's value, should change the value of the input above.
This is what I tried:
print("<select name='supplier_combo' onchange='setSupplierInputValue(this.value, ${issue['nr']})'>");
and the script:
echo "\r\n" . '<SCRIPT TYPE="text/javascript">' . "\r\n";
echo 'function setSupplierInputValue(value, issue_nr)' . "\r\n";
echo '{' . "\r\n";
echo ' issue_array[issue_nr]["supplier"] = value;';
echo '}' . "\r\n";
echo '</SCRIPT>'. "\r\n";
But it doesn't work, please help.