Custom Results Forms
As of version 13.10.2.2, it is possible to use custom forms in the results module for the results details popup form. This allows us to create additional forms with flexibility in what data and how the data is presented.
Steps to Implement
There are steps that must be completed by a developer and a final one for a Flow user:
Developer
Create a new user control form that will be added to the Flow installation.
Add the control files to a subfolder of:
Flow.Controls.Election.Custom
Form names must start with the the text
Credit
. (custom results edit)Forms can be specific to offices by naming them with the office name as a suffix
Example: TV2_Parti where Parti is the {office} name
Register the form in Flow code:
Flow.Controls.Election.Custom.CustomControlRegister
Register the form in the Election Event select list:
flow_electionEvent.aspx
ListCustomForms
Use the {office} text as a suffix in the option value to enable office specific form selection
Example:
TV2 {office}
Notes
Look at the code in the flow_electionResults.aspx
. Look for ApplyCustomEditForm
.
Â
Flow User
Select the desired control format from the list for each Election Event that it should apply to and save the changes to the Election Event.
Test that the correct form is selected in the Results module.
Examples
A party custom form showing previous seats, votes and vote% fields.
Another less custom form
The default form today:
Â