11 years ago
4
Topic

Hi all,

Is it possible to get a substring from a text field when submitting a form (using computation rules or something else ..) ?

I have a postal code (filled by the user) and I would like to automatically fill in another field with the first two digits only (departement) ..

Get a VIP membership
11 years ago
0
Level 1

Does somebody has any idea ?

It doesn't seem to be a tremendous functionality ..

11 years ago
0
Level 1

Hello flovertaco,

you could use jQuery for that and put your JQuery code in a custom variation for that field.

Just an idea...

11 years ago
1
Level 1

Hello gebeer,

That is what I finally did with my limited knowledge in jQuery (and it works fine !). But I was looking for a "cleaner" solution using Seblod functionalities ..

11 years ago
0
Level 2

Glad you figured it out. Unfortunately I don't know of a cleaner solution.


There is Simons SD Live plugin that can take values of any fields and insert them into another field. But I don't think that his plugin allows string manipulation.

Get a Book for SEBLOD