103 Posts
Osep45
7 years ago
5
Topic

Hi,

I have a site form with: 

- a date field

- a button "Give me some suggestions for this date"

- 3 tabs.

When the visitor clic on the button "Give me suggestions for this date", the form must be saved and must display the second tab (it's a list of suggestions

for this date to help the visitor to fill the form).

How can I set the button action in order to save and display the second tab ?

(I need to keep the first tab at the first place...)

Osep45

Get a Book for SEBLOD
1283 Posts
Bucklash
7 years ago
1
Level 1

Hi

Have you tried usimg workflow... ie, on edit then the 3rd tab shows... or maybe stage

103 Posts
Osep45
7 years ago
0
Level 2

Thank you Bucklash, but that's not what I wish : 

the second tab should be accessible during the first stage too.


4229 Posts
Kadministrator
7 years ago
2
Level 1

See how url changes when you click on each tab http://getbootstrap.com/2.3.2/javascript.html#tabs   - it appends hash with the tab name to the end of url like this http://getbootstrap.com/2.3.2/javascript.html#profile - this is what you need to append to the url

103 Posts
Osep45
7 years ago
1
Level 2

Thank you Klas, but it isn't my question : I know what should be the link, but I can't manage to configure it in a field !

I have created a field type "Envoi" :

- type : "Button"

- task : "Save"

- Choice : "hide"

- Redirection : "None"

- Custom variables : "#my-tab"

but it doesn't work... When I click on the button, the form is well saved but the custom variable is not in the url.

Where else should I parameter it ?

4229 Posts
Kadministrator
7 years ago
0
Level 3

Task save won't work as this is done using ajax. You probably need to use Save&Close with redirection to current url + #hash

Get a VIP membership