Using xdExtension inside default value formula

M

Mark

Hi All,

I am successfully using xdExtension:MyFunction() syntax inside InfoPath
rules. I've tried using the same technique inside field default value
formulae and I see the following error message:

Reference to undeclared namespace prefix: 'xdExtension'.

-->xdExtension:GetUserName()<--

Is there a trick I'm missing to achieve what I'm trying or is this not
possible?

Thanks in advance,
Mark
 
F

Franck Dauché

Hi Mark,

Basically, you are trying to set the default value of a node by code
(calling a function). Why don't you call that function on form load and set
the node value there?

Franck Dauché
 
M

Mark

Thanks Franck,

That exactly what I ended up doing. Does that mean that it is NOT possible
to use the xdExtension:MyFunction() syntax inside field default value
formulae?

Regards,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top