logo

NJP

#3 Form Design in ServiceNow | Learn Application Development in ServiceNow | Leave Management System

Import · Nov 09, 2020 · video

[Music] in order to subscribe to my channel please click here or click here please share comment and like my videos and channel form designing so that you can learn that how exactly we can design the form as well so what i will do i will quickly just close these tabs and we will go to create application file we will go to form and ui and here we have form basically you can design the form so i will click on this and i will double click now it will ask you ask you that which particular table you want to design the form for which particular table so in this case we will start with leave request so this will basically open the form design view where i can design the form so let's see how exactly you can design any form in servicenow so here you can see we have these fields basically uh but the thing is it has been created randomly so you're not you have not uh basically uh you because you might get a requirement your customer can say that hey i want this field left hand side i want this field on right hand side or this field should be this much big something like that so in that case what i will do i will start with number so we have number let it be here we will put request by a little bit just below number then we will put type because we want to put the leave type so we already have leave type then we will do start date so maybe i will put start date over here and then we will also select end date so end date is over here now i can select if i want to take half day half day i can put over here and then i will just select the duration so i will put the duration over here because you have to make sure that the fields are basically balanced the layout should be looking good as per the user experience so i have this duration over here then i have this comments now for comments i will put it in a different different layout so i will just click on like this i will make it one column layout and i will put comments over here so comments are here i will also put status over here at the top and i will put approval over here and then i will keep duration here i have okay so in that case maybe i will do like this so you can select the start date end date you can select the half day if you want to take uh and then you can just show accrued you can show taken you can show balance as well that how many uh how many leaves are basically left that is something you can see over here so this is how you can design the form for different tables for different uh like different uh different kind of forms you will have as per the requirement you get from your customer and clients so i will just click on save so that it can save this form layout which we just created so we have designed uh the form i don't think we have missed any field so i will close this one because my next form basically i have to design the next tables form and i will go here i will go to form ui i will double click over here and i will select any other table so maybe we will go for leave bucket so i will go for leave bucket so so you can see we have last year balance that's okay we have balance we have taken uh i think this is not something end user perspective so even if its layout is not very user friendly i think that's still okay uh then we have leave type no we don't have employee so maybe i will just put employee over here and then i can just put maybe accrued taken maybe the balance over here and i can just put leave type here i think this looks pretty much good i would say and then i will click on save so this will save this form design i can close this as well and then i will move to my third table form design so that will be calculator so i have this leave calculator again it is not uh i would say uh end user perspective so in that case you can just do as it is like whatever you want so i have this leave assignments i will start with leave assignment and i will do starting month i will do end month and i will select here leave type and i will select here country and i will select leaves that how many leaves you want to basically give to do to these employees like as for the country and that will be fulfilled by basically hr admins like the people who basically decides well i think decision can be from anyone but from from hr uh teams but if i talk about who updates it totally depends that who who basically whom you want to give acts or maybe i would say like whom hr team wants to give access so they might ask you that hey create something different role which we can assign to this different different people ourselves rather than they reach out to uh servicenow kind of administration team so or maybe support team so rather than that uh if if you will if you will provide those information that um that they can they can just uh you can just provide a role so that they can update these information automatically with the help of configurations uh so i'm just i'm done with this form design and i will click on save so we are done with creation of the tables creation of the fields and we are also now done with form designing so we have create all these forms all these all these tables have been created properly as per the requirement till now we are keep on creating the application but before we go further let's see the output that whatever we have created till now let's see uh basically in in service now so what i will do i will quickly go to here and i will refresh it i will reload my servicenow instance in this particular tab and i will see if my application is created and i'm able to see or not so over here if i type leave absolutely you can see i have my application leave management system and we have this leave buckets as well and you will see so our table is created we have these fields and if i go over here we have leave calculators so here we have and then if i talk about leave request so you can see we have this leave request list as well and i can also create a new leave request if i will click on this create new button this will create a new new leave request so if i click on this you can see like this i can see this leave type cs okay it seems like it is uh populating the backend uh value and early it should shouldn't happen maybe it should be cl that's the reason so i will go back to my studio and i will go to the request and if i go to leave type and that's the reason it's very important that while you create the application you also need to see what exactly the output you are getting so if i you can see we have the cl not cs that's a mistake we did so i will just save this now and if i will save this i will reload it yep absolutely you can see now the default value is casual leave but it is not showing you the backend value it is showing you the label name which basically users should see and we have all these uh choices you see requested and all we have open submitted cancelled start date end date this true false we have this balance accrued all the fields it says new section okay again it should not be new section so maybe i will i will just quickly go to form design so i will just go to design form and here i will just remove this name and i will save this once you will save that i will come over here so you can see now that new section is being removed and now i can put the comments whatever i want over here so once you will create the tables once you will create uh basically design the form and design that basically uh create the choices that's how your forms and different fields will look like so now till here you are done with form design creating tables now the time will start when you will write the actual logic actual calculations different kind of i would say modulations on the form maybe hiding some fields maybe uh just just populating some fields maybe making some fields mandatory that's something we will start with now so till now we are done with the basic with the baseline that is the creation of tables forms and and creation of choices um but but after that once you are done with this now we have to focus on logic that how we can make this application work that as of now i can still create the rackets but i will not be able to uh basically fulfill the expectation of our customers that means the hr hr business because they have the requirement of creating the whole application so let's start with with the logics with different with different uh kind of elements we have to create for this application basically to make it work and to end

View original source

https://www.youtube.com/watch?v=WGdfk17NshU