It is a loaded question. As the job seeker, you have very few cards in your hand and this is one of them.
It is wrong because HR departments (engineering firms and in other fields) are known to use job interviews as market research opportunities and free consultations. The market data is available through ASCE, LinkedIn, and other platforms. There is no reason to ask.
It is wrong because it undercuts your ability to have a good faith negotiation on salary when the offer is presented. The employer knows your number and has all the power. This is a practice wide problem and keeps salaries down. It is not a problem exclusive to engineering.
There are a few ways to handle this. First, ask the salary range for the position upfront. If the high end is not what you are looking for, do not go any further. You can also respond to the question with a range as well.
If you already have a job, never tell interviewer how much you are making. When you do that you give up your power in negotiation. Tell them, "I cannot tell you how much I am making right now, but I would be willing to consider making a jump for $xxx,xxx." At that point your interview might be over, but at least you know it was not due to poor interview skills or resume.
The mandatory online form is a problem. You can enter a number that is low and write a comment about negotiation of salary in your open comment section. Essentially, the employer is likely sorting the applications and you may end up in the "not being considered" pile. Hand deliver or email your resume directly if possible.
It is very hard to tell someone in a pinch not to settle. However, your value to a firm is not a number, but the skills and performance that you present in your resume and interview, An interviewer who cannot recognize these qualities and offer to compensate them accordingly is not doing his practice or others a good service. It cheapens the profession, leads to high turnover, and a culture where you are viewed as a resource to be exploited, not a responsible professional. It might be a good reason not to work for that firm.
I have also seen geography given as a big reason for offering low salaries. I have been told "you only see salaries like that in NYC, SF, & DC." So what? I see the ability to travel quickly and connect via the internet as a way to break down these geographic barriers.
------------------------------
Chad Morrison P.E.,M.ASCE
Professional Engineer
Greenville RI
(401)231-4870 EXT 2207
------------------------------