Unable to include multiple CSS into a single snippet

Hi all, I am needing some assistance with a snippet that I have been using for some time now to automate online form filling. It currently operates by copying a policy expiry date (D/MM/YYYY format) to clipboard then filling an online form as follows:

{import: /regex_pol_type} Policy Due for Renewal {clipboard: trim=right}
{key: tab; trim=yes}
{key: q; trim=yes}{key: downarrow; trim=yes}
{key: tab; trim=yes}
{note: trim=yes}{formtext: name=date; default={clipboard}; trim=right}{endnote: trim=yes}{time: DD/MM/YYYY; shift=-3W; trim=yes; pattern=D/MM/YYYY; at={=date}}
{repeat: 7; trim=yes} {key: tab; trim=yes} {endrepeat: trim=yes}
$ fee on rnl
{cursor: trim=no} rnl - $
{wait: delay=+2s; trim=yes}
{repeat: 2; trim=yes}{key: tab; trim=yes}{endrepeat: trim=yes}
{key: downarrow; trim=yes}{key: downarrow; trim=yes}{key: downarrow; trim=yes}
{repeat: 2; trim=yes}{key: tab; trim=yes}{endrepeat: trim=yes}
{import: /name}
{repeat: 3; trim=yes}{key: tab; trim=yes}{endrepeat: trim=yes}
{key: enter; trim=yes}

I have created a new snippet recently to extract the expiry date of the policy using regex from the same CSS selector as /regex_pol_type, labelled /regex_exp_date. An example of what this looks like is bolded below.
"Commercial Motor - 16/02/2024 to 16/02/2025"
It does not grab blank space from either side so the result would be 16/02/2025.

Ultimately I want to replace the clipboard function with the /regex_exp_date snippet however it is not recognising both within the same snippet. They both work with no issues independently but when combined the regex_exp_date errors out.

Thanks in advance! :slight_smile:

@user571 Welcome back to the forum, it's nice to see you again. :slight_smile:

If I got you correctly, then you want to replace the {clipboard} function in your snippet, with the import of /regex_pol_type snippet, but it gives you an error. Can you please share the error you're seeing with that import?

Thanks Abdalla!

That is correct. The error shows as follows:

Are you using the same output name of "date" in both pol_type and exp_date snippets? Can you see if renaming them to "pol_date" and "exp_date" works? Be sure to also update any formula/variable/command that references these names