How to get the Action value from a Form?

Class library usage, coding and language questions.
mdgairaud
Posts: 87
Joined: Sun Aug 05, 2012 11:59 am
Location: Bilbao, Spain

How to get the Action value from a Form?

Post by mdgairaud » Thu Nov 14, 2013 7:10 pm

Hi,

I need to take the Action value from a form item, but I don't know how to get it.

If I open the form element properties, inside the FormTag section it's the action value.

any idea?

Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: How to get the Action value from a Form?

Post by Swisside » Fri Nov 15, 2013 4:35 pm

Hello

Since I didn't know how to get it I tried a bit because I like to learn :)


Here is your answer :

In a Usercode module you can use the following =>
string str = repo.MyDom.MyForm.Action.ToString();
where MyDom and MyForm are the name you gave to the Dom and the Form elements in your Repository respectively.
A simple thank you always does wonders !