Setting default value for specific views

davilu
Mega Sage

Hi Everyone, is there a way to set different default values for specific views?  

10 REPLIES 10

sethivarun
Kilo Guru

Hi, 

Please provide some more details as to what you want to accomplish?

SanjivMeher
Kilo Patron
Kilo Patron

Can you elaborate more. Which value do you want to set on what condition?


Please mark this response as correct or helpful if it assisted you with your question.

davilu
Mega Sage

Sorry for my lack of detail!  Basically I have a form with a couple different views and I want to specify a default value for a field for only one of the views.  For instance, I have a field called Question Category and I want the default value to be 'HR Question' only for the 'HR Question' View.  Is this possible?

sethivarun
Kilo Guru

it is possible. 

what you need is following:

1) an onload client script which would check if the current view is HR Question or not. 

IF it is it would auto populate the field's value to 'HR Question'.

2) an onchange script that would basically do the same as the above client script, except it would work if someone is switching between the views