Looking at the sources of the HybridForm, it cannot be modified so it will take action
htmlAttribute into account: http://pastebin.com/5dfQdzs8
So you may create your own form based on this code. You'll need html helper:
public static MyHybridForm BeginFormSitefinity(this HtmlHelper htmlHelper, string actionName, string formName, FormMethod method, IDictionary<string, object> htmlAttributes)
{
return new MyHybridForm(htmlHelper.ViewContext, actionName, formName, method, (object) htmlAttributes);
}
and override GenerateActionUrl()
in your MyHybridForm
by using action htmlAttribute into account.