Jan 05, 2018, 6:48 PM
[CLOSED] pass params on form post in custom config
Hello,
I need to pass the "redirect" as a parameter of the form so on the MVC side, i can declare the method Blah to receive it. How can i do this? Is it easier to add an element to the Items?
Thanks,
/Z
I need to pass the "redirect" as a parameter of the form so on the MVC side, i can declare the method Blah to receive it. How can i do this? Is it easier to add an element to the Items?
Thanks,
/Z
public ActionResult Blah(bool? redirect)
<ext:FormPanel
ID="Form1"
runat="server"
Border="false"
Height="500"
Padding="30"
BodyStyle="background:transparent;" >
<AutoEl Tag="Form">
<CustomConfig>
<ext:ConfigItem Name="method" Value="POST" Mode="Value" />
<ext:ConfigItem Name="redirect" Value="Ext.get('_redirect').getValue()" Mode="Raw" />
<ext:ConfigItem Name="action" Value="/Test/Blah" Mode="Value" />
</CustomConfig>
</AutoEl>
<Items>
Last edited by fabricio.murta; Jan 09, 2018 at 6:06 PM.