The hidden <input> form elements should be optional. They will be left blank unless a country subcategory has been chosen on the Campaign page.
As we have two forms on the Participate page (depicts and captions), we will have to add a hidden element to each form.
We should add the same class to each of them (e.g. "country-subcategory-input") so that we can easily complete them with JQuery in the client side.
/Note: When a country sub-category has been chosen on the Campaign page, the Participate page URL will have the selected country appended (e.g. ?country=Nigeria). This is then used on the client side to populate hidden form elements./
To summarise,
- Hidden <input> elements added to both the depicts and caption forms, used for storing the country sub category if it's been selected.
- They will be populated on the client side, and remain there for the entire participation session (submitted with every save action)