Show a hidden field on hover of a second field

Hi Plumsail,

SharePoint 2019 on-premise:

Is there a way to display a hidden field while hovering over a second field?

Thanks, Rhonda

Hi @rhonda,

Try this:

fd.spRendered(() => {
    fd.field('HiddenField').hidden = true;
    fd.field('SecondField').$el.onmouseover = () => { fd.field('HiddenField').hidden = false; }
    fd.field('SecondField').$el.onmouseout = () => { fd.field('HiddenField').hidden = true; }
});

Let me know if it helps.

Hi @IliaLazarevskii,

Do the fields have to be a certain datatype? I am getting a TypeError fd.field(...).$e1 is undefined.

Thanks, Rhonda

Hi @rhonda,

Could you share a screenshot of the error and the export file of the form? You can send these materials to support@plumsail.com if you'd prefer not to share them publicly.

Thanks for your assistance @IliaLazarevskii .

I was able to get this to work.

Have a great day, Rhonda