|
Home > Archive > Microsoft Content Management Server > March 2005 > Required Fields
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Punisher 2005-03-22, 6:03 pm |
| Is it possible to make placeholders/fields required upon save?
I imagine this would include customizing the save event. Can I get the
original code or that so I can just add mine to it?
| |
| Stefan [MSFT] 2005-03-22, 6:03 pm |
| Hi Punisher,
there are multiple different options to achieve this:
- a custom save action
- a custom validator control that checks the placeholder content
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Punisher" <Punisher@discussions.microsoft.com> wrote in message
news:525CC392-9D5C-43A7-940B-CD31746942BC@microsoft.com...
> Is it possible to make placeholders/fields required upon save?
>
> I imagine this would include customizing the save event. Can I get the
> original code or that so I can just add mine to it?
| |
| Punisher 2005-03-29, 6:18 pm |
| I wound up using your client-side validation control and it's working great.
However, the customer is wanting a validation that checks 2 controls. One of
the controls must have data. So basically the 2 controls combine are
required but one of them can be empty as long as the other has data.
I've been brainstorming different ideas with my team and we can't think of a
good solution for this.
"Stefan [MSFT]" wrote:
> Hi Punisher,
>
> there are multiple different options to achieve this:
> - a custom save action
> - a custom validator control that checks the placeholder content
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "Punisher" <Punisher@discussions.microsoft.com> wrote in message
> news:525CC392-9D5C-43A7-940B-CD31746942BC@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-03-30, 2:48 am |
| Hi Punisher,
The easiest way to achieve this would be a custom console action which does
the check on the client side.
Means before calling the base action check using Javascript if the
placeholder controls contain content.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Punisher" <Punisher@discussions.microsoft.com> wrote in message
news:A59B1348-C783-4A74-8B57-DA3485AAE873@microsoft.com...
> I wound up using your client-side validation control and it's working
great.
> However, the customer is wanting a validation that checks 2 controls. One
of
> the controls must have data. So basically the 2 controls combine are
> required but one of them can be empty as long as the other has data.
>
> I've been brainstorming different ideas with my team and we can't think of
a[vbcol=seagreen]
> good solution for this.
>
> "Stefan [MSFT]" wrote:
>
rights[vbcol=seagreen]
| |
| Punisher 2005-03-31, 5:58 pm |
| Ok, I thought about that, but the problem I had is how would the method know
which controls to check? How would it get access to them to check them?
I mean, the solution sounds easy, but doing it is proving to be difficult.
Maybe I need more coffee.
"Stefan [MSFT]" wrote:
> Hi Punisher,
>
> The easiest way to achieve this would be a custom console action which does
> the check on the client side.
> Means before calling the base action check using Javascript if the
> placeholder controls contain content.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "Punisher" <Punisher@discussions.microsoft.com> wrote in message
> news:A59B1348-C783-4A74-8B57-DA3485AAE873@microsoft.com...
> great.
> of
> a
> rights
>
>
>
| |
| Stefan [MSFT] 2005-03-31, 5:58 pm |
| Hi Punisher,
store the info in one or a couple of form fields (e.g.)
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Punisher" <Punisher@discussions.microsoft.com> wrote in message
news:FB69B9E1-48D1-4A1B-A300-AD0C47B72C5A@microsoft.com...
> Ok, I thought about that, but the problem I had is how would the method
know[vbcol=seagreen]
> which controls to check? How would it get access to them to check them?
>
> I mean, the solution sounds easy, but doing it is proving to be difficult.
> Maybe I need more coffee.
>
> "Stefan [MSFT]" wrote:
>
does[vbcol=seagreen]
rights[vbcol=seagreen]
One[vbcol=seagreen]
think of[vbcol=seagreen]
the[vbcol=seagreen]
|
|
|
|
|