RE: Fill form field ONLY if blank

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
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
Post Reply
mrjjman
Posts: 18
Joined: Mon Apr 11, 2016 5:41 am

RE: Fill form field ONLY if blank

Post by mrjjman » Tue Oct 11, 2016 8:34 pm

I'm trying to work with this form, and sometimes the info is pre-filled by the website. Is there a way that if data is in the form field, to not overwrite it? Here is the start of my code below:

VERSION BUILD=8970419 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:PropertyInfo* ATTR=NAME:estYearPurchased CONTENT=12/2012

So if content was blank, then I can pre-fill with my data. However, if content has data, to NOT pre-fill with my info?

Thanks!
chivracq
Posts: 8716
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: RE: Fill form field ONLY if blank

Post by chivracq » Tue Oct 11, 2016 10:13 pm

mrjjman wrote:I'm trying to work with this form, and sometimes the info is pre-filled by the website. Is there a way that if data is in the form field, to not overwrite it? Here is the start of my code below:

Code: Select all

VERSION BUILD=8970419 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:PropertyInfo* ATTR=NAME:estYearPurchased CONTENT=12/2012
So if content was blank, then I can pre-fill with my data. However, if content has data, to NOT pre-fill with my info?

Thanks!
Hum, you always ask interesting Questions, pity you didn't understand how to use a Technical Forum a bit correctly, by not following up on (all I think) your previous Threads for example, and I don't answer your Threads anymore now... :roll:
(Hint: I've already answered a similar Thread a few months ago, searching the Forum is another way "of using the Forum a bit correctly"... :idea: And I don't remember exactly for which Solution I went, but I can think directly of 3 Solutions to achieve what you want, so it shouldn't be very difficult...)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply