How do get the name of the [current] form and place it in a variable (e.g. !VAR1)?
For example, I may be on this page:
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:signon ATTR=NAME:submit&&VALUE:Log-in
or on this page:
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:keyform1 ATTR=NAME:Submit&&VALUE:Submit
In the 1st case, the Form name is "signon", while in the second it is "keyform1".
How would I make iMacros set !VAR1 to the Form name?
How do I put Form Name in Variable?
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Re: How do I put Form Name in Variable?
bump... Is this not possible? Seems simple..?
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Re: How do I put Form Name in Variable?
Just to clarify: Is the form name already in the macro?
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:keyform1 ATTR=NAME:Submit&&VALUE:Submit
If it is in the macro, why do you need to put it in a variable?
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:keyform1 ATTR=NAME:Submit&&VALUE:Submit
If it is in the macro, why do you need to put it in a variable?
Re: How do I put Form Name in Variable?
No, the form name is not in the macro.
I will navigate to one of the 2 pages outside of the macro, and I need the macro to know which of the 2 pages I am on, e.g.
If I am on form#1 => action#1
If I am on form#2 => action#2
I will navigate to one of the 2 pages outside of the macro, and I need the macro to know which of the 2 pages I am on, e.g.
If I am on form#1 => action#1
If I am on form#2 => action#2
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Re: How do I put Form Name in Variable?
If you only need to distinguish between two known websites (with known form names), you can simply check for a keyword (text) on the website, and then run macro1 (with action1) or macro2 (with action2).
Re: How do I put Form Name in Variable?
Sorry for being a newbie at this. How do I put the form name in the variable?Tech Support wrote:If you only need to distinguish between two known websites (with known form names), you can simply check for a keyword (text) on the website, and then run macro1 (with action1) or macro2 (with action2).