by Allen Leonard
However, if you are targeting a whole crowd of custom targets (say a board or a city council), then the supporter's information gets shoved waaaaaaay down at the bottom of the left hand column on the action.
Sometimes, the information gets pushed down so far that he supporter doesn't see anything to fill out, and no place to take action. That can be very frustrating, both for the supporter ("I feel strongly, let me take action.") and you ("Where in the heck did all of that stuff go?!?")
The reason that this is happening is that the supporter information is in a box (<div> tag) after the comment. The comment is in a box that's the same height as the targeted legislators, so when the list of targets is really tall, then a lot of space gets puts after the comment to make sure that they stay the same height. (Anyone who's ever worn lifts in their shoes knows exactly what I'm talking about.)
Challenge: Move personal information on an action to keep it by the comment
We will meet this week's challenge by finding the <div> tag ("box") that holds the personal information, and moving it right under the comment. Then we'll do the same thing with the submit button, and the challenge will be met.
This is the "before" condition. As before, notice that the list of targets is pretty long, and the input fields are smushed down to the bottom of the page.
- Since this script will run on any actions, then the best place for it to live is in a template. However, putting it in your current template could possibly cause problems on non-action pages.
For that reason, I recommend that you make a copy of your template, name it the "Action Template", and put the changes there. Please send us a note at email@example.com, if you need help copying your template.
- Edit the copy of your template.
- Copy this script using Control-C or Command-C:
- Save your template.
- The last step is to assign this template to your action page. Start by editing the action page that you want to change.
- Next, change the template in your action page(s).
- Edit an action page.
- Click on the "Change" link in the yellow publishing box. You will be presented with a page of your templates.
- Click on the "Action Template" that you just created.
- Click on Save.
- You are done!
Now, when you run your action(s), you'll see that the input fields are on the left side of the page, and the targets are on the right side of the page. Here's a copy of my example after I installed the script into my actions template:
We've seen that it's possible to move stuff around in an action page, giving us a chance to move all of the data entry fields up where the supporter can see them, even when there are a bunch of targets on the right.
I hope that this was all very helpful to you. If you have questions or suggestions, then please send me some mail at firstname.lastname@example.org. Hope y'all have an excellent week!