Skip to content

Form inputs in fixed columns #153

Description

@jmoody47

With a straight clone of the cells in the fixed columns, this presents a problem on form submit if form inputs exist in the fixed columns. The value of the original form input (hidden beneath the clone) is posted.

I was able to get around it with a simple script setting the values before submit, but it would be a nice thing to address in the future.

In case anyone else runs into this, here's the script I used:
$(form).submit(function(){
$(selector).each(function(){
val = $(this).val();
name = $(this).attr("name");
if(val !== ""){
$("input[name='" + name +"'").val(val);
}
});
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions