Show/Hide form section tab when UI Action button clicked.

jyothinath
Tera Contributor

Hi all

@Ankur Bawiskar @Anand Kumar P 

 

I have a requirement

1. I need to show this PIR data section in "change_task" when I click this "Request PIR" button in change_request it should create 1 "sc_Task" along with this PIR data section should be visible only SC_task created through this "Request PIR" button.

2. remining "sc_task"that are created irrespective to this button no need to show this "PIR data" section in that "sc_task"form.

3.this "Request PIR "buttion should be visible only in "review" state.

4.I have created this "Requested PIR" button using this script bellow mentioned:

Table: change_request

Client check box: Enabled

Onclick: sectionClientScript();

1.

jyothinath_1-1700478755974.png

2.

jyothinath_2-1700478778471.png

 

3.UI action script part:

jyothinath_3-1700478802020.png

4.task created in Related list

 

Need your help

Regards

Jyothinath P

condition:current.state=='0'

1 REPLY 1

Samaksh Wani
Giga Sage
Giga Sage

Hello @jyothinath 

 

You cannot use glide record and current keyword into the client script.

 

for doing so, You need to leverage above code using script include.

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh