Hi all,
I have a custom navbar button on account screen. If the user clicks the
button, i want to check if the relationship type =4 or not. I know i can do
it via SDK but is it possible to do via Javascript? Just to get the value
from the record without going into .net and sdk?

RE: Can Custom button access form variables? by Dossies

Dossies
Fri Aug 31 01:44:01 PDT 2007

In your ISV.config you can add javascript to your button tag and access
fields on the form, f.e.:
<Button ... JavaScript="if(crmForm.all.<schemaname>.DataValue == ...)" />

Hope this helps,
Kevin Dosseray


"Atul Gadre" wrote:

> Hi all,
> I have a custom navbar button on account screen. If the user clicks the
> button, i want to check if the relationship type =4 or not. I know i can do
> it via SDK but is it possible to do via Javascript? Just to get the value
> from the record without going into .net and sdk?

Re: Can Custom button access form variables? by Shaurya

Shaurya
Fri Aug 31 03:26:22 PDT 2007

Whats the difference between "crmForm.all.<schemaname>.DataValue" &&
"crmForm.all.<schemaname>.Value" ?

Dossies wrote:
> In your ISV.config you can add javascript to your button tag and access
> fields on the form, f.e.:
> <Button ... JavaScript="if(crmForm.all.<schemaname>.DataValue == ...)" />
>
> Hope this helps,
> Kevin Dosseray
>
>
> "Atul Gadre" wrote:
>
>> Hi all,
>> I have a custom navbar button on account screen. If the user clicks the
>> button, i want to check if the relationship type =4 or not. I know i can do
>> it via SDK but is it possible to do via Javascript? Just to get the value
>> from the record without going into .net and sdk?

Re: Can Custom button access form variables? by Matt

Matt
Fri Aug 31 07:40:42 PDT 2007

DataValue will return numerics w/o the formatting.

--

Matt Parks
MVP - Microsoft CRM


"Shaurya Anand" <shauryaanand@hotmail.com> wrote in message
news:ue%23ahl76HHA.4712@TK2MSFTNGP04.phx.gbl...
Whats the difference between "crmForm.all.<schemaname>.DataValue" &&
"crmForm.all.<schemaname>.Value" ?

Dossies wrote:
> In your ISV.config you can add javascript to your button tag and access
> fields on the form, f.e.:
> <Button ... JavaScript="if(crmForm.all.<schemaname>.DataValue == ...)" />
>
> Hope this helps,
> Kevin Dosseray
>
>
> "Atul Gadre" wrote:
>
>> Hi all,
>> I have a custom navbar button on account screen. If the user clicks the
>> button, i want to check if the relationship type =4 or not. I know i can
>> do
>> it via SDK but is it possible to do via Javascript? Just to get the value
>> from the record without going into .net and sdk?



Re: Can Custom button access form variables? by AtulGadre

AtulGadre
Sun Sep 02 23:54:02 PDT 2007

Thnks for the reply!!
I have written this -
JavaScript="if(crmForm.all.new_status.DataValue !=2) {alert('Status should
be Approved');return false;}"
And its not working. Returning an error. could you help in this please?
Thanks..

"Matt Parks" wrote:

> DataValue will return numerics w/o the formatting.
>
> --
>
> Matt Parks
> MVP - Microsoft CRM
>
>
> "Shaurya Anand" <shauryaanand@hotmail.com> wrote in message
> news:ue%23ahl76HHA.4712@TK2MSFTNGP04.phx.gbl...
> Whats the difference between "crmForm.all.<schemaname>.DataValue" &&
> "crmForm.all.<schemaname>.Value" ?
>
> Dossies wrote:
> > In your ISV.config you can add javascript to your button tag and access
> > fields on the form, f.e.:
> > <Button ... JavaScript="if(crmForm.all.<schemaname>.DataValue == ...)" />
> >
> > Hope this helps,
> > Kevin Dosseray
> >
> >
> > "Atul Gadre" wrote:
> >
> >> Hi all,
> >> I have a custom navbar button on account screen. If the user clicks the
> >> button, i want to check if the relationship type =4 or not. I know i can
> >> do
> >> it via SDK but is it possible to do via Javascript? Just to get the value
> >> from the record without going into .net and sdk?
>
>
>